manager: Filter ignore case. fix #1470
This commit is contained in:
@@ -83,8 +83,11 @@ class SuperUserViewModel : ViewModel() {
|
|||||||
|
|
||||||
val appList by derivedStateOf {
|
val appList by derivedStateOf {
|
||||||
sortedList.filter {
|
sortedList.filter {
|
||||||
it.label.contains(search) || it.packageName.contains(search) || HanziToPinyin.getInstance()
|
it.label.contains(search, true) || it.packageName.contains(
|
||||||
.toPinyinString(it.label).contains(search)
|
search,
|
||||||
|
true
|
||||||
|
) || HanziToPinyin.getInstance()
|
||||||
|
.toPinyinString(it.label).contains(search, true)
|
||||||
}.filter {
|
}.filter {
|
||||||
it.uid == 2000 // Always show shell
|
it.uid == 2000 // Always show shell
|
||||||
|| showSystemApps || it.packageInfo.applicationInfo.flags.and(ApplicationInfo.FLAG_SYSTEM) == 0
|
|| showSystemApps || it.packageInfo.applicationInfo.flags.and(ApplicationInfo.FLAG_SYSTEM) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user