Skip to content
Snippets Groups Projects
Commit a6b454e6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix hasPendingUpdates() in DiffUtilAdapter

parent e398f74d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment