aboutsummaryrefslogtreecommitdiff
path: root/library/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/main')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt2
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt
index 564898a..4904194 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt
@@ -41,7 +41,7 @@ interface CoreAttributeContract {
*/
class CoreAttributeBuilder : CoreAttributeContract {
override var textColor: (() -> Int)? = null
- override var accentColor: (() -> Int)? = null
+ override var accentColor: (() -> Int)? = textColor
}
interface KPrefActivityContract {
diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
index fb42e65..4d57ff1 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
@@ -53,7 +53,7 @@ class KPrefDelegate<T : Any> internal constructor(private val key: String, priva
is Float -> pref.sp.getFloat(key, fallback)
is Int -> pref.sp.getInt(key, fallback)
is Long -> pref.sp.getLong(key, fallback)
- is StringSet -> pref.sp.getStringSet(key, fallback)
+ is StringSet -> StringSet(pref.sp.getStringSet(key, fallback))
is String -> pref.sp.getString(key, fallback)
else -> throw KPrefException(fallback)
}