From 6cf00130f4a110719fe73291893eb433fdaf0a5c Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 15 May 2024 12:42:31 +0800 Subject: [PATCH] Check Magisk version instead of app version --- app/src/main/java/com/topjohnwu/magisk/ui/home/RebootMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/RebootMenu.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/RebootMenu.kt index 21b8e76de..5602a8261 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/RebootMenu.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/RebootMenu.kt @@ -41,7 +41,7 @@ object RebootMenu { activity.getSystemService()?.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