Fixed stable channel asking for custom URL when previously selected

This commit is contained in:
Viktor De Pasquale 2019-05-25 16:15:08 +02:00
parent 27cb40eec9
commit c33cf9f878

View File

@ -73,6 +73,7 @@ abstract class BasePreferenceFragment : PreferenceFragmentCompat(),
protected fun getChannelCompat(channel: Int): KConfig.UpdateChannel { protected fun getChannelCompat(channel: Int): KConfig.UpdateChannel {
return when (channel) { return when (channel) {
Config.Value.STABLE_CHANNEL,
Config.Value.DEFAULT_CHANNEL -> KConfig.UpdateChannel.STABLE Config.Value.DEFAULT_CHANNEL -> KConfig.UpdateChannel.STABLE
Config.Value.BETA_CHANNEL -> KConfig.UpdateChannel.BETA Config.Value.BETA_CHANNEL -> KConfig.UpdateChannel.BETA
Config.Value.CANARY_CHANNEL -> KConfig.UpdateChannel.CANARY Config.Value.CANARY_CHANNEL -> KConfig.UpdateChannel.CANARY