aboutsummaryrefslogtreecommitdiff
path: root/fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding
diff options
context:
space:
mode:
Diffstat (limited to 'fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding')
-rw-r--r--fastadapter-viewbinding/src/main/kotlin/ca/allanwang/fastadapter/viewbinding/BindingItem.kt4
1 files changed, 2 insertions, 2 deletions
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<Binding : ViewBinding>(open val data: Any?) :
return binding.root
}
- final override fun bindView(holder: ViewHolder, payloads: MutableList<Any>) {
+ final override fun bindView(holder: ViewHolder, payloads: List<Any>) {
super.bindView(holder, payloads)
val binding = holder.getBinding<Binding>()
binding.bindView(holder, payloads)
}
- abstract fun Binding.bindView(holder: ViewHolder, payloads: MutableList<Any>)
+ abstract fun Binding.bindView(holder: ViewHolder, payloads: List<Any>)
protected fun unbind(vararg textViews: TextView) {
textViews.forEach { it.text = null }