mirror of https://github.com/topjohnwu/Magisk
Make sure UI and state is in sync
This commit is contained in:
parent
727c70005e
commit
f8395a7dc6
|
@ -36,6 +36,7 @@ class PolicyRvItem(
|
|||
var isEnabled
|
||||
get() = item.policy == SuPolicy.ALLOW
|
||||
set(value) = setImpl(value, isEnabled) {
|
||||
notifyPropertyChanged(BR.enabled)
|
||||
viewModel.togglePolicy(this, value)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue