aboutsummaryrefslogtreecommitdiff
path: root/fastadapter/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-10-24 17:45:09 -0700
committerAllan Wang <me@allanwang.ca>2021-10-24 17:45:09 -0700
commit222709bc15ace77ebf03e5a8e17e0bf026520970 (patch)
tree802f80dc3e6956b9e8bdf15f4d265f3b863fa58d /fastadapter/src
parent8c95d32ce4a82ec00590c428d163a3604b7d44ec (diff)
downloadkau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.gz
kau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.bz2
kau-222709bc15ace77ebf03e5a8e17e0bf026520970.zip
Many version bumps
Diffstat (limited to 'fastadapter/src')
-rw-r--r--fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt2
-rw-r--r--fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt3
-rw-r--r--fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt3
3 files changed, 5 insertions, 3 deletions
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt
index 32806f2..711db52 100644
--- a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt
+++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt
@@ -161,7 +161,7 @@ class ThemableIItemDelegate : ThemableIItem, ThemableIItemColors by ThemableIIte
override fun bindBackgroundRipple(vararg views: View?) {
val background = backgroundColor ?: return
val foreground = accentColor ?: textColor ?: backgroundColor
- ?: return // default to normal background
+ ?: return // default to normal background
val ripple = createSimpleRippleDrawable(foreground, background)
views.forEach { it?.background = ripple }
}
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt
index 41663c9..ce75f0f 100644
--- a/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt
+++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt
@@ -48,7 +48,8 @@ class CardIItem(
val builder: Config.() -> Unit = {}
) : KauIItem< CardIItem.ViewHolder>(
R.layout.kau_iitem_card, ::ViewHolder, R.id.kau_item_card
-), ThemableIItem by ThemableIItemDelegate() {
+),
+ ThemableIItem by ThemableIItemDelegate() {
companion object {
fun bindClickEvents(fastAdapter: FastAdapter<GenericItem>) {
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt
index 15ceb31..2e87b99 100644
--- a/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt
+++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt
@@ -36,7 +36,8 @@ class HeaderIItem(
var textRes: Int = INVALID_ID
) : KauIItem<HeaderIItem.ViewHolder>(
R.layout.kau_iitem_header, { ViewHolder(it) }, R.id.kau_item_header_big_margin_top
-), ThemableIItem by ThemableIItemDelegate() {
+),
+ ThemableIItem by ThemableIItemDelegate() {
var text: String = text ?: "Header Placeholder"