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 --- about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt | 2 +- about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt | 2 +- about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'about/src/main/kotlin/ca') diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt b/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt index d92f6a7..2a1588c 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt @@ -35,7 +35,7 @@ class CutoutIItem(val config: CutoutView.() -> Unit = {}) : KauIItem) { + override fun bindView(holder: ViewHolder, payloads: List) { super.bindView(holder, payloads) with(holder) { if (accentColor != null && themeEnabled) cutout.foregroundColor = accentColor!! diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt b/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt index 977b7ff..ddb9a18 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt @@ -67,7 +67,7 @@ class FaqIItem(val content: FaqItem) : KauIItem( private var isExpanded = false @SuppressLint("SetTextI18n") - override fun bindView(holder: ViewHolder, payloads: MutableList) { + override fun bindView(holder: ViewHolder, payloads: List) { super.bindView(holder, payloads) with(holder) { number.text = "${content.number}." diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt b/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt index cd53f55..c64fe4e 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt @@ -59,7 +59,7 @@ class LibraryIItem(val lib: Library) : KauIItem( get() = false set(_) {} - override fun bindView(holder: ViewHolder, payloads: MutableList) { + override fun bindView(holder: ViewHolder, payloads: List) { super.bindView(holder, payloads) with(holder) { name.text = lib.libraryName -- cgit v1.2.3