Skip to content

Commit

Permalink
Check Magisk version instead of app version
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed May 15, 2024
1 parent 6c27ba6 commit 6cf0013
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object RebootMenu {
activity.getSystemService<PowerManager>()?.isRebootingUserspaceSupported == true) {
menu.menu.findItem(R.id.action_reboot_userspace).isVisible = true
}
if (Const.APP_IS_CANARY) {
if (Const.Version.isCanary()) {
menu.menu.findItem(R.id.action_reboot_safe_mode).isChecked = Config.bootloop >= 2
} else {
menu.menu.findItem(R.id.action_reboot_safe_mode).isVisible = false
Expand Down

0 comments on commit 6cf0013

Please sign in to comment.