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
|
||||
|
||||
enum class IndeterminateState {
|
||||
INDETERMINATE, CHECKED, UNCHECKED
|
||||
}
|
||||
CHECKED, INDETERMINATE, UNCHECKED
|
||||
}
|
||||
|
@ -73,7 +73,8 @@ class HideViewModel(
|
||||
.filter { it.processes.isNotEmpty() }
|
||||
.map { HideRvItem(it, hideTargets.blockingGet()) }
|
||||
.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) }
|
||||
.flatMap { queryRaw() }
|
||||
.applyViewModel(this)
|
||||
|
Loading…
Reference in New Issue
Block a user