aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-03 20:37:23 -0700
committerAllan Wang <me@allanwang.ca>2017-07-03 20:37:23 -0700
commit8df185cfdc94fa937d37d8ec6ece6a2374fba189 (patch)
treea7819c253aba6b04d1117e1f5bd871b6b2affd34 /library/src/main/kotlin
parentc7e1a0ccbc5ab366b8d14720b0b5b0e7ab34c126 (diff)
downloadkau-8df185cfdc94fa937d37d8ec6ece6a2374fba189.tar.gz
kau-8df185cfdc94fa937d37d8ec6ece6a2374fba189.tar.bz2
kau-8df185cfdc94fa937d37d8ec6ece6a2374fba189.zip
Keep kpref theming
Diffstat (limited to 'library/src/main/kotlin')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt2
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt1
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)
}
}