Commit c33cf9f8 authored by Viktor De Pasquale's avatar Viktor De Pasquale

Fixed stable channel asking for custom URL when previously selected

parent 27cb40ee
...@@ -73,6 +73,7 @@ abstract class BasePreferenceFragment : PreferenceFragmentCompat(), ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment