mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 04:25:27 +00:00
Sort hidden items on the top
This commit is contained in:
parent
b245782c7e
commit
b25c49725f
@ -1,5 +1,5 @@
|
|||||||
package com.topjohnwu.magisk.model.entity.state
|
package com.topjohnwu.magisk.model.entity.state
|
||||||
|
|
||||||
enum class IndeterminateState {
|
enum class IndeterminateState {
|
||||||
INDETERMINATE, CHECKED, UNCHECKED
|
CHECKED, INDETERMINATE, UNCHECKED
|
||||||
}
|
}
|
@ -73,7 +73,8 @@ class HideViewModel(
|
|||||||
.filter { it.processes.isNotEmpty() }
|
.filter { it.processes.isNotEmpty() }
|
||||||
.map { HideRvItem(it, hideTargets.blockingGet()) }
|
.map { HideRvItem(it, hideTargets.blockingGet()) }
|
||||||
.toList()
|
.toList()
|
||||||
.map { it.sortBy { it.item.info.name }; it }
|
.map { it.sortWith(compareBy(
|
||||||
|
{it.isHiddenState.value}, {it.item.info.name}, {it.packageName})); it }
|
||||||
.doOnSuccess { allItems.update(it) }
|
.doOnSuccess { allItems.update(it) }
|
||||||
.flatMap { queryRaw() }
|
.flatMap { queryRaw() }
|
||||||
.applyViewModel(this)
|
.applyViewModel(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user