diff options
author | Allan Wang <me@allanwang.ca> | 2021-10-24 17:45:09 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-10-24 17:45:09 -0700 |
commit | 222709bc15ace77ebf03e5a8e17e0bf026520970 (patch) | |
tree | 802f80dc3e6956b9e8bdf15f4d265f3b863fa58d /fastadapter/src/main/kotlin | |
parent | 8c95d32ce4a82ec00590c428d163a3604b7d44ec (diff) | |
download | kau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.gz kau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.bz2 kau-222709bc15ace77ebf03e5a8e17e0bf026520970.zip |
Many version bumps
Diffstat (limited to 'fastadapter/src/main/kotlin')
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" |