Sort hide targets by app name

This commit is contained in:
topjohnwu 2019-05-11 01:53:37 -07:00
parent a5f5e94115
commit d5371f752c

View File

@ -74,7 +74,7 @@ class HideViewModel(
.map { HideRvItem(it, hideTargets.blockingGet()) } .map { HideRvItem(it, hideTargets.blockingGet()) }
.toList() .toList()
.map { it.sortWith(compareBy( .map { it.sortWith(compareBy(
{it.isHiddenState.value}, {it.item.info.name}, {it.packageName})); it } {it.isHiddenState.value}, {it.item.name}, {it.packageName})); it }
.doOnSuccess { allItems.update(it) } .doOnSuccess { allItems.update(it) }
.flatMap { queryRaw() } .flatMap { queryRaw() }
.applyViewModel(this) .applyViewModel(this)