Commit d5371f75 authored by topjohnwu's avatar topjohnwu

Sort hide targets by app name

parent a5f5e941
...@@ -74,7 +74,7 @@ class HideViewModel( ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment