diff options
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt index 6c0b608..af5c59b 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefSingleDelegate.kt @@ -2,12 +2,11 @@ package ca.allanwang.kau.kpref import ca.allanwang.kau.kotlin.ILazyResettable -/** - * Created by Allan Wang on 2017-06-07. - */ fun KPref.kprefSingle(key: String) = KPrefSingleDelegate(key, this) /** + * Created by Allan Wang on 2017-06-07. + * * Singular KPref Delegate for booleans * When the shared pref is not initialized, it will return true then set the pref to false * All subsequent retrievals will be false |