mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 11:21:24 +00:00
Fix inconsistency of FilterableDiffObservableList
`update` should also update sublist
This commit is contained in:
parent
3b3abd63cc
commit
c3f9533ddc
@ -141,4 +141,10 @@ private class FilterableDiffObservableList<T : DiffItem<*>>(
|
|||||||
|
|
||||||
override val size: Int
|
override val size: Int
|
||||||
get() = sublist.size
|
get() = sublist.size
|
||||||
|
|
||||||
|
@MainThread
|
||||||
|
override fun update(newItems: List<T>, diffResult: DiffUtil.DiffResult) {
|
||||||
|
super.update(newItems, diffResult)
|
||||||
|
sublist = list
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user