aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-10 22:07:27 -0700
committerAllan Wang <me@allanwang.ca>2017-06-10 22:07:27 -0700
commit93846b3df8fd838a3277f5bacaa99e4ffb59012a (patch)
treeba8903bb4c959fecee73b70de5ee2e29f3842173 /library/src/main/kotlin/ca
parentc0550e9892ae454e1f244dd2980c633d85803a25 (diff)
downloadkau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.tar.gz
kau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.tar.bz2
kau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.zip
Add key to kPrefDelegate toString
Diffstat (limited to 'library/src/main/kotlin/ca')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt2
1 files changed, 1 insertions, 1 deletions
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 f897660..9638904 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt
@@ -60,7 +60,7 @@ class KPrefDelegate<T : Any> internal constructor(private val key: String, priva
override fun isInitialized(): Boolean = _value !== UNINITIALIZED
- override fun toString(): String = if (isInitialized()) value.toString() else "Lazy value not initialized yet."
+ override fun toString(): String = if (isInitialized()) value.toString() else "Lazy pref $key not initialized yet."
operator fun setValue(any: Any, property: kotlin.reflect.KProperty<*>, t: T) {
_value = t