mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -24,14 +24,8 @@ class TxtTocRuleAdapter(context: Context, private val callBack: CallBack) :
|
||||
private val selected = linkedSetOf<TxtTocRule>()
|
||||
|
||||
val selection: List<TxtTocRule>
|
||||
get() {
|
||||
val selection = arrayListOf<TxtTocRule>()
|
||||
getItems().map {
|
||||
if (selected.contains(it)) {
|
||||
selection.add(it)
|
||||
}
|
||||
}
|
||||
return selection.sortedBy { it.serialNumber }
|
||||
get() = getItems().filter {
|
||||
selected.contains(it)
|
||||
}
|
||||
|
||||
override fun getViewBinding(parent: ViewGroup): ItemTxtTocRuleBinding {
|
||||
|
||||
Reference in New Issue
Block a user