From 33ad3ab71a06d6505c37b1e23f7d9a82db243c84 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 18 Jul 2020 17:08:50 -0700 Subject: Update fast adapter --- .../main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fastadapter-viewbinding/src') diff --git a/fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt b/fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt index 96055e4..ff694f0 100644 --- a/fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt +++ b/fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt @@ -56,13 +56,13 @@ abstract class BindingItem(open val data: Any?) : return binding.root } - final override fun bindView(holder: ViewHolder, payloads: MutableList) { + final override fun bindView(holder: ViewHolder, payloads: List) { super.bindView(holder, payloads) val binding = holder.getBinding() binding.bindView(holder, payloads) } - abstract fun Binding.bindView(holder: ViewHolder, payloads: MutableList) + abstract fun Binding.bindView(holder: ViewHolder, payloads: List) protected fun unbind(vararg textViews: TextView) { textViews.forEach { it.text = null } -- cgit v1.2.3