From 756d8356ca799fd173e72ff92a6b59abdc419453 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 15 May 2022 01:28:49 -0700 Subject: [PATCH] Show canary channel option on canary builds --- .../main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt index c6e676302..adfcd03e3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt @@ -167,7 +167,7 @@ object UpdateChannel : BaseSettingsItem.Selector() { override val entryRes = R.array.update_channel override fun entries(res: Resources): Array { return super.entries(res).let { - if (!BuildConfig.DEBUG) + if (!Const.APP_IS_CANARY && !BuildConfig.DEBUG) it.copyOfRange(0, Config.Value.CANARY_CHANNEL) else it }