Skip to content

Commit

Permalink
fix: alert when shizuku not authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Aug 6, 2024
1 parent 9a094a7 commit 4cc51ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/xtr/keymapper/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ public void startPointer(){
setButtonState(false);
requestNotificationPermission();
}
if (!RemoteServiceHelper.isRootService)
if (RemoteServiceHelper.useShizuku) {
if (!Shizuku.pingBinder()) alertShizukuNotAuthorized();
} else if (!RemoteServiceHelper.isRootService) {
alertRootAccessAndExit();
}
}

private void setButtonState(boolean start) {
Expand Down

0 comments on commit 4cc51ae

Please sign in to comment.