Clock - Properly handle vibration toggle at timer reminder

This commit is contained in:
Pavol Franek
2020-03-14 14:41:13 +01:00
parent 08aa7bf62c
commit 1163a8bcd9
4 changed files with 28 additions and 7 deletions

View File

@ -70,4 +70,9 @@ class Config(context: Context) : BaseConfig(context) {
gson.fromJson(lastAlarm, Alarm::class.java)
}
set(alarm) = prefs.edit().putString(ALARM_LAST_CONFIG, gson.toJson(alarm)).apply()
var timerChannelId: String?
get() = prefs.getString(TIMER_CHANNEL_ID, null)
set(id) = prefs.edit().putString(TIMER_CHANNEL_ID, id).apply()
}