mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 13:38:30 +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
|
||||
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