mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 12:11:26 +00:00
Sort policy with app name
This commit is contained in:
parent
cec017b7bf
commit
3f3b1f5b1d
@ -55,6 +55,12 @@ class SuperuserViewModel(
|
|||||||
.flattenAsFlowable { it }
|
.flattenAsFlowable { it }
|
||||||
.map { PolicyRvItem(it, it.applicationInfo.loadIcon(packageManager)) }
|
.map { PolicyRvItem(it, it.applicationInfo.loadIcon(packageManager)) }
|
||||||
.toList()
|
.toList()
|
||||||
|
.map {
|
||||||
|
it.sortedWith(compareBy(
|
||||||
|
{ it.item.appName.toLowerCase() },
|
||||||
|
{ it.item.packageName }
|
||||||
|
))
|
||||||
|
}
|
||||||
.applySchedulers()
|
.applySchedulers()
|
||||||
.applyViewModel(this)
|
.applyViewModel(this)
|
||||||
.subscribeK { items.update(it) }
|
.subscribeK { items.update(it) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user