String update, make sure to close shade if requesting Accessibility perms.

This commit is contained in:
d8ahazard
2016-09-24 14:21:26 -05:00
parent cf69dd644a
commit d2335485f2
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}