diff options
Diffstat (limited to 'library/src/main')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt | 2 | ||||
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt b/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt index 0fc590d..66fec4b 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt @@ -184,6 +184,6 @@ class ThemableIItemDelegate : ThemableIItem, ThemableIItemColors by ThemableIIte override fun bindIconColor(vararg views: ImageView?) { val color = accentColor ?: textColor ?: return - views.forEach { it?.drawable.setTintList(ColorStateList.valueOf(color)) } + views.forEach { it?.drawable?.setTintList(ColorStateList.valueOf(color)) } } }
\ No newline at end of file diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt index 3c4a052..5f684ba 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt @@ -53,7 +53,6 @@ abstract class KPrefItemCore(val core: CoreContract) : AbstractItem<KPrefItemCor if (accentColor != null) { icon?.drawable?.setTint(accentColor) } - bindTextColor(title, desc) onPostBindView(this, textColor, accentColor) } } |