From 1269a026da6a4597f7123e310768e3377e8c63e8 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 10 Dec 2017 22:17:28 -0500 Subject: fix/lint (#110) * Remove nullability to match fastadapter * Remove redundant override --- about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt | 4 ++-- 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, 4 insertions(+), 4 deletions(-) (limited to 'about/src/main') 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 10a18b2..448d27f 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/CutoutIItem.kt @@ -14,12 +14,12 @@ import ca.allanwang.kau.utils.bindView * Just a cutout item with some defaults in [R.layout.kau_iitem_cutout] */ class CutoutIItem(val config: CutoutView.() -> Unit = {}) : KauIItem( - R.layout.kau_iitem_cutout, {ViewHolder(it)}, R.id.kau_item_cutout + R.layout.kau_iitem_cutout, ::ViewHolder, R.id.kau_item_cutout ), ThemableIItem by ThemableIItemDelegate() { override fun isSelectable(): Boolean = false - override fun bindView(holder: ViewHolder, payloads: MutableList?) { + override fun bindView(holder: ViewHolder, payloads: MutableList) { 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 5595aed..b153fc9 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt @@ -43,7 +43,7 @@ class FaqIItem(val content: FaqItem) : KauIItem?) { + override fun bindView(holder: ViewHolder, payloads: MutableList) { 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 88e6f9b..f61c72c 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/LibraryIItem.kt @@ -42,7 +42,7 @@ class LibraryIItem(val lib: Library) : KauIItem?) { + override fun bindView(holder: ViewHolder, payloads: MutableList) { super.bindView(holder, payloads) with(holder) { name.text = lib.libraryName -- cgit v1.2.3