allow customizing max reminder length at Alarm

This commit is contained in:
tibbi
2018-03-11 19:27:41 +01:00
parent b4bb2172c6
commit afa4599f5e
7 changed files with 68 additions and 11 deletions

View File

@ -41,4 +41,8 @@ class Config(context: Context) : BaseConfig(context) {
var timerSoundTitle: String
get() = prefs.getString(TIMER_SOUND_TITLE, context.getDefaultAlarmTitle())
set(timerSoundTitle) = prefs.edit().putString(TIMER_SOUND_TITLE, timerSoundTitle).apply()
var alarmMaxReminderSecs: Int
get() = prefs.getInt(ALARM_MAX_REMINDER_SECS, DEFAULT_MAX_ALARM_REMINDER_SECS)
set(alarmMaxReminderSecs) = prefs.edit().putInt(ALARM_MAX_REMINDER_SECS, alarmMaxReminderSecs).apply()
}