From d2335485f2b3e041200355952ff07b92a1deb952 Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Sat, 24 Sep 2016 14:21:26 -0500 Subject: [PATCH] String update, make sure to close shade if requesting Accessibility perms. --- .../com/topjohnwu/magisk/services/TileServiceNewApi.java | 8 ++++++++ app/src/main/res/values/strings.xml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java b/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java index f692b7649..a970fe9f1 100644 --- a/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java +++ b/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java @@ -87,12 +87,20 @@ public class TileServiceNewApi extends android.service.quicksettings.TileService switch (rootsState) { case 2: Utils.toggleRoot(true, getApplicationContext()); + if (!Utils.hasServicePermission(getApplicationContext())) { + Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); + sendBroadcast(it); + } Utils.toggleAutoRoot(false, getApplicationContext()); break; case 1: Utils.toggleRoot(false, getApplicationContext()); break; case 0: + if (!Utils.hasServicePermission(getApplicationContext())) { + Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); + sendBroadcast(it); + } Utils.toggleAutoRoot(true, getApplicationContext()); break; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f805253e2..61321e97e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -32,7 +32,7 @@ Root enabled. Safety Net (Android Pay) will NOT work Root disabled Safety Net (Android Pay) should work, but no root temporarily\nYou might need to manually add a card in Android Pay app to refresh the root status of AP - Root set to auto-mount + Root set to auto-toggle Root will auto unmount for selected applications. Safety Net (Android Pay) should work. Magisk Incompatible Root Detected Root improperly installed. Safety Net (Android Pay) will NOT work, and impossible to toggle.