Sort policy with app name
This commit is contained in:
parent
cec017b7bf
commit
3f3b1f5b1d
@ -55,6 +55,12 @@ class SuperuserViewModel(
|
||||
.flattenAsFlowable { it }
|
||||
.map { PolicyRvItem(it, it.applicationInfo.loadIcon(packageManager)) }
|
||||
.toList()
|
||||
.map {
|
||||
it.sortedWith(compareBy(
|
||||
{ it.item.appName.toLowerCase() },
|
||||
{ it.item.packageName }
|
||||
))
|
||||
}
|
||||
.applySchedulers()
|
||||
.applyViewModel(this)
|
||||
.subscribeK { items.update(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user