Check Magisk version instead of app version

This commit is contained in:
topjohnwu 2024-05-15 12:42:31 +08:00 committed by John Wu
parent 6c27ba6b88
commit 6cf00130f4

View File

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