Fixed disable account issue not being applied until accounts settings are left & re-entered
This commit is contained in:
parent
19fe8dd57b
commit
05b272fcb8
1 changed files with 2 additions and 0 deletions
|
@ -126,7 +126,9 @@ class AccountSettingsViewModel(val proxyConfig: ProxyConfig) : GenericSettingsVi
|
||||||
|
|
||||||
val disableListener = object : SettingListenerStub() {
|
val disableListener = object : SettingListenerStub() {
|
||||||
override fun onBoolValueChanged(newValue: Boolean) {
|
override fun onBoolValueChanged(newValue: Boolean) {
|
||||||
|
proxyConfig.edit()
|
||||||
proxyConfig.enableRegister(!newValue)
|
proxyConfig.enableRegister(!newValue)
|
||||||
|
proxyConfig.done()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val disable = MutableLiveData<Boolean>()
|
val disable = MutableLiveData<Boolean>()
|
||||||
|
|
Loading…
Reference in a new issue