Commit a6b454e6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix hasPendingUpdates() in DiffUtilAdapter

parent e398f74d
......@@ -34,7 +34,7 @@ abstract class DiffUtilAdapter<D : MediaLibraryItem, VH : RecyclerView.ViewHolde
launch(UI) {
dataset = finalList
result.dispatchUpdatesTo(this@DiffUtilAdapter)
if (!updateActor.isFull) onUpdateFinished()
onUpdateFinished()
}.join()
}
......@@ -42,7 +42,7 @@ abstract class DiffUtilAdapter<D : MediaLibraryItem, VH : RecyclerView.ViewHolde
fun peekLast() = last
fun hasPendingUpdates() = last !== dataset
fun hasPendingUpdates() = updateActor.isFull
open protected fun detectMoves() = false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment