Always show hidden apps
This commit is contained in:
parent
a9f32baae0
commit
b245782c7e
@ -14,6 +14,7 @@ import com.topjohnwu.magisk.model.entity.HideAppInfo
|
||||
import com.topjohnwu.magisk.model.entity.HideTarget
|
||||
import com.topjohnwu.magisk.model.entity.recycler.HideProcessRvItem
|
||||
import com.topjohnwu.magisk.model.entity.recycler.HideRvItem
|
||||
import com.topjohnwu.magisk.model.entity.state.IndeterminateState
|
||||
import com.topjohnwu.magisk.model.events.HideProcessEvent
|
||||
import com.topjohnwu.magisk.ui.base.MagiskViewModel
|
||||
import com.topjohnwu.magisk.utils.Utils
|
||||
@ -94,7 +95,10 @@ class HideViewModel(
|
||||
it.item.name.contains(query, ignoreCase = true) ||
|
||||
it.item.processes.any { it.contains(query, ignoreCase = true) }
|
||||
}
|
||||
.filter { if (showSystem) true else it.item.info.flags and ApplicationInfo.FLAG_SYSTEM == 0 }
|
||||
.filter {
|
||||
showSystem || (it.isHiddenState.value != IndeterminateState.UNCHECKED) ||
|
||||
(it.item.info.flags and ApplicationInfo.FLAG_SYSTEM == 0)
|
||||
}
|
||||
.toList()
|
||||
.map { it to items.calculateDiff(it) }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user