mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-19 21:58:28 +00:00
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…
x
Reference in New Issue
Block a user