Update Config.kt

This commit is contained in:
Tibor Kaputa 2022-11-22 18:50:07 +01:00 committed by GitHub
parent 5d55fe2c47
commit 9be41c69e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ class Config(context: Context) : BaseConfig(context) {
var toggleStopWatch: Boolean
get() = prefs.getBoolean(TOGGLE_STOPWATCH, false)
set(label) = prefs.edit().putBoolean(TOGGLE_STOPWATCH, label).apply()
set(toggleStopWatch) = prefs.edit().putBoolean(TOGGLE_STOPWATCH, toggleStopWatch).apply()
var alarmSort: Int
get() = prefs.getInt(ALARMS_SORT_BY, SORT_BY_CREATION_ORDER)