mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 09:53:22 +00:00
Fix typo in getAppStartIntents
This commit is contained in:
@@ -220,7 +220,7 @@ public class BackgroundModeExt extends CordovaPlugin {
|
|||||||
Activity activity = cordova.getActivity();
|
Activity activity = cordova.getActivity();
|
||||||
PackageManager pm = activity.getPackageManager();
|
PackageManager pm = activity.getPackageManager();
|
||||||
|
|
||||||
for (Intent intent : getAppstartIntents())
|
for (Intent intent : getAppStartIntents())
|
||||||
{
|
{
|
||||||
if (pm.resolveActivity(intent, MATCH_DEFAULT_ONLY) != null)
|
if (pm.resolveActivity(intent, MATCH_DEFAULT_ONLY) != null)
|
||||||
{
|
{
|
||||||
@@ -418,7 +418,7 @@ public class BackgroundModeExt extends CordovaPlugin {
|
|||||||
/**
|
/**
|
||||||
* Returns list of all possible intents to present the app start settings.
|
* Returns list of all possible intents to present the app start settings.
|
||||||
*/
|
*/
|
||||||
private List<Intent> getAppstartIntents()
|
private List<Intent> getAppStartIntents()
|
||||||
{
|
{
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
new Intent().setComponent(new ComponentName("com.miui.securitycenter","com.miui.permcenter.autostart.AutoStartManagementActivity")),
|
new Intent().setComponent(new ComponentName("com.miui.securitycenter","com.miui.permcenter.autostart.AutoStartManagementActivity")),
|
||||||
|
|||||||
Reference in New Issue
Block a user