From 3c3bb70b01040fed8e8c88d7854d2a3c1ea7234f Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Sat, 24 Sep 2016 10:56:57 -0500 Subject: [PATCH] Add intent flag for permission request from Utils --- app/src/main/java/com/topjohnwu/magisk/utils/Utils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/Utils.java b/app/src/main/java/com/topjohnwu/magisk/utils/Utils.java index dc3aea940..86f88219e 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/Utils.java +++ b/app/src/main/java/com/topjohnwu/magisk/utils/Utils.java @@ -149,6 +149,7 @@ public class Utils { if (!Utils.hasServicePermission(context)) { Intent intent = new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS); Toast.makeText(context, "Please enable Magisk in accessibility for auto-toggle work.", Toast.LENGTH_LONG).show(); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); } else { PreferenceManager.getDefaultSharedPreferences(context).edit().putBoolean("autoRootEnable", b).apply();