Commit 13c2695e authored by vvb2060's avatar vvb2060 Committed by John Wu

simplify denylist rm

parent 3ff60ed4
......@@ -44,9 +44,18 @@ class DenyListRvItem(
processes
.filterNot { it.isEnabled }
.filter { isExpanded || it.defaultSelection }
.forEach { it.toggle() }
} else {
processes.filter { it.isEnabled }
}.forEach { it.toggle() }
Shell.cmd("magisk --denylist rm ${info.packageName}").submit()
processes.filter { it.isEnabled }.forEach {
if (it.process.isIsolated) {
it.toggle()
} else {
it.isEnabled = !it.isEnabled
notifyPropertyChanged(BR.enabled)
}
}
}
}
init {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment