aboutsummaryrefslogtreecommitdiff
path: root/fastadapter-viewbinding/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 17:08:50 -0700
committerAllan Wang <me@allanwang.ca>2020-07-18 17:08:50 -0700
commit33ad3ab71a06d6505c37b1e23f7d9a82db243c84 (patch)
treeda10027f50ca787b3caa6db74f8786133f44cf19 /fastadapter-viewbinding/src/main/kotlin
parent3ebee97ef6e1341b7d5538b405c045eaaca971c4 (diff)
downloadkau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.gz
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.bz2
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.zip
Update fast adapter
Diffstat (limited to 'fastadapter-viewbinding/src/main/kotlin')
-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 }