From 9fcc859633f581150b79045acf066711550a0d62 Mon Sep 17 00:00:00 2001 From: Rakhimulin Damir Date: Thu, 28 Jan 2021 11:24:03 +0300 Subject: [PATCH] Fixed updateList extension --- rekukler/src/main/java/com/rerekt/rekukler/RecyclerViewDSL.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rekukler/src/main/java/com/rerekt/rekukler/RecyclerViewDSL.kt b/rekukler/src/main/java/com/rerekt/rekukler/RecyclerViewDSL.kt index b44ae75..066a642 100644 --- a/rekukler/src/main/java/com/rerekt/rekukler/RecyclerViewDSL.kt +++ b/rekukler/src/main/java/com/rerekt/rekukler/RecyclerViewDSL.kt @@ -19,7 +19,9 @@ fun RecyclerView.configure( } fun RecyclerView.updateList(newList: List) { - (adapter as? MultiBindingAdapter)?.updateList(newList) + (adapter as? MultiBindingAdapter)?.apply { + items = newList + } } fun RecyclerView.getItems() = (adapter as? MultiBindingAdapter)?.items as? List