aboutsummaryrefslogtreecommitdiff
path: root/sample/src
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 /sample/src
parent3ebee97ef6e1341b7d5538b405c045eaaca971c4 (diff)
downloadkau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.gz
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.tar.bz2
kau-33ad3ab71a06d6505c37b1e23f7d9a82db243c84.zip
Update fast adapter
Diffstat (limited to 'sample/src')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt
index 50cfe69..7bd2851 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/PermissionCheckbox.kt
@@ -41,7 +41,7 @@ import com.mikepenz.fastadapter.listeners.EventHook
class PermissionCheckbox(val permission: String) : KauIItem<PermissionCheckbox.ViewHolder>(
R.layout.permission_checkbox, { ViewHolder(it) }) {
- override fun bindView(holder: ViewHolder, payloads: MutableList<Any>) {
+ override fun bindView(holder: ViewHolder, payloads: List<Any>) {
super.bindView(holder, payloads)
holder.text.text = permission
holder.checkbox.isChecked = holder.itemView.context.hasPermission(permission)
@@ -72,7 +72,7 @@ class PermissionCheckboxViewBinding(
override fun PermissionCheckboxBinding.bindView(
holder: ViewHolder,
- payloads: MutableList<Any>
+ payloads: List<Any>
) {
permText.text = data.permission
permCheckbox.apply {