This commit is contained in:
len
2016-12-18 22:31:20 +01:00
parent fd76255cf6
commit e3d430eb5e
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ fun <T> Preference<T>.getOrDefault(): T = get() ?: defaultValue()!!
fun Preference<Boolean>.invert(): Boolean = getOrDefault().let { set(!it); !it }
class PreferencesHelper(context: Context) {
class PreferencesHelper(val context: Context) {
val keys = PreferenceKeys(context)