@@ -82,15 +82,12 @@ class SettingsViewModel(application: Application) : AndroidViewModel(application
|
|||||||
|
|
||||||
AppConfig.PREF_MUX_CONCURRENCY,
|
AppConfig.PREF_MUX_CONCURRENCY,
|
||||||
AppConfig.PREF_MUX_XUDP_CONCURRENCY -> {
|
AppConfig.PREF_MUX_XUDP_CONCURRENCY -> {
|
||||||
settingsStorage?.encode(
|
settingsStorage?.encode(key, sharedPreferences.getString(key, "8"))
|
||||||
key,
|
|
||||||
sharedPreferences.getString(key, "8")?.toIntOrNull() ?: 8
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AppConfig.PREF_PER_APP_PROXY_SET -> {
|
// AppConfig.PREF_PER_APP_PROXY_SET -> {
|
||||||
settingsStorage?.encode(key, sharedPreferences.getStringSet(key, setOf()))
|
// settingsStorage?.encode(key, sharedPreferences.getStringSet(key, setOf()))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
if (key == AppConfig.PREF_UI_MODE_NIGHT) {
|
if (key == AppConfig.PREF_UI_MODE_NIGHT) {
|
||||||
Utils.setNightMode(getApplication())
|
Utils.setNightMode(getApplication())
|
||||||
|
|||||||
Reference in New Issue
Block a user