mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 23:03:37 +00:00
simplify denylist rm
This commit is contained in:
parent
3ff60ed49f
commit
13c2695e98
@ -44,9 +44,18 @@ class DenyListRvItem(
|
|||||||
processes
|
processes
|
||||||
.filterNot { it.isEnabled }
|
.filterNot { it.isEnabled }
|
||||||
.filter { isExpanded || it.defaultSelection }
|
.filter { isExpanded || it.defaultSelection }
|
||||||
|
.forEach { it.toggle() }
|
||||||
} else {
|
} else {
|
||||||
processes.filter { it.isEnabled }
|
Shell.cmd("magisk --denylist rm ${info.packageName}").submit()
|
||||||
}.forEach { it.toggle() }
|
processes.filter { it.isEnabled }.forEach {
|
||||||
|
if (it.process.isIsolated) {
|
||||||
|
it.toggle()
|
||||||
|
} else {
|
||||||
|
it.isEnabled = !it.isEnabled
|
||||||
|
notifyPropertyChanged(BR.enabled)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user