Show canary channel option on canary builds

This commit is contained in:
topjohnwu 2022-05-15 01:28:49 -07:00
parent 42003b4006
commit 756d8356ca

View File

@ -167,7 +167,7 @@ object UpdateChannel : BaseSettingsItem.Selector() {
override val entryRes = R.array.update_channel override val entryRes = R.array.update_channel
override fun entries(res: Resources): Array<String> { override fun entries(res: Resources): Array<String> {
return super.entries(res).let { return super.entries(res).let {
if (!BuildConfig.DEBUG) if (!Const.APP_IS_CANARY && !BuildConfig.DEBUG)
it.copyOfRange(0, Config.Value.CANARY_CHANNEL) it.copyOfRange(0, Config.Value.CANARY_CHANNEL)
else it else it
} }