diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-10 22:07:27 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-10 22:07:27 -0700 |
commit | 93846b3df8fd838a3277f5bacaa99e4ffb59012a (patch) | |
tree | ba8903bb4c959fecee73b70de5ee2e29f3842173 /library | |
parent | c0550e9892ae454e1f244dd2980c633d85803a25 (diff) | |
download | kau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.tar.gz kau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.tar.bz2 kau-93846b3df8fd838a3277f5bacaa99e4ffb59012a.zip |
Add key to kPrefDelegate toString
Diffstat (limited to 'library')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt | 2 |
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 |