mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Show canary channel option on canary builds
This commit is contained in:
parent
42003b4006
commit
756d8356ca
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user