From a3b1feabff751c814914e10c7460cc378f550b8f Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sat, 20 Apr 2024 15:38:55 +0800 Subject: [PATCH] Bug fix https://github.com/2dust/v2rayNG/issues/3024 --- .../com/v2ray/ang/viewmodel/SettingsViewModel.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/SettingsViewModel.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/SettingsViewModel.kt index 9fbbdcfb..13e4a1ab 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/SettingsViewModel.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/SettingsViewModel.kt @@ -82,15 +82,12 @@ class SettingsViewModel(application: Application) : AndroidViewModel(application AppConfig.PREF_MUX_CONCURRENCY, AppConfig.PREF_MUX_XUDP_CONCURRENCY -> { - settingsStorage?.encode( - key, - sharedPreferences.getString(key, "8")?.toIntOrNull() ?: 8 - ) + settingsStorage?.encode(key, sharedPreferences.getString(key, "8")) } - AppConfig.PREF_PER_APP_PROXY_SET -> { - settingsStorage?.encode(key, sharedPreferences.getStringSet(key, setOf())) - } +// AppConfig.PREF_PER_APP_PROXY_SET -> { +// settingsStorage?.encode(key, sharedPreferences.getStringSet(key, setOf())) +// } } if (key == AppConfig.PREF_UI_MODE_NIGHT) { Utils.setNightMode(getApplication())