diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/superuser/PolicyRvItem.kt b/app/src/main/java/com/topjohnwu/magisk/ui/superuser/PolicyRvItem.kt index dd587ad70..124665cb8 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/superuser/PolicyRvItem.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/superuser/PolicyRvItem.kt @@ -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) }