aboutsummaryrefslogtreecommitdiff
path: root/fastadapter-viewbinding/src/main/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 18:18:16 -0700
committerGitHub <noreply@github.com>2020-07-18 18:18:16 -0700
commitfd95fb5d4fdbf3d25081cb4f5de101d3edd89731 (patch)
tree9cdda7e1eb087f8507364c8f389f65961ed25066 /fastadapter-viewbinding/src/main/kotlin/ca
parentceed2ade66042d45a08767171385124c66255249 (diff)
parent271c72b1fc99cf0862dcae9fdf7310b5ffeb4ddc (diff)
downloadkau-6.0.0.tar.gz
kau-6.0.0.tar.bz2
kau-6.0.0.zip
Merge pull request #257 from AllanWang/versions6.0.0
Diffstat (limited to 'fastadapter-viewbinding/src/main/kotlin/ca')
-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 }