Skip to content

Commit 1c8873d

Browse files
authored
Add onDiffDone to SimpleRecyclerAdapter
1 parent 3b3743f commit 1c8873d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flowerpotrecycler/src/main/java/com/lukeneedham/flowerpotrecycler/simpleadapter/SimpleRecyclerAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ abstract class SimpleRecyclerAdapter<ItemType, ItemViewType>(items: List<ItemTyp
6767
itemView.setItem(position, item)
6868
}
6969

70-
fun submitList(newItems: List<ItemType>) {
71-
positionDelegate.submitList(newItems)
70+
fun submitList(newItems: List<ItemType>, onDiffDone: () -> Unit = {}) {
71+
positionDelegate.submitList(newItems, onDiffDone)
7272
}
7373
}

0 commit comments

Comments
 (0)