mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 18:07:39 +00:00
simplify denylist rm
This commit is contained in:
parent
3ff60ed49f
commit
13c2695e98
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user