set the timer to 5 minutes by default

This commit is contained in:
tibbi
2018-03-08 19:32:17 +01:00
parent c995e79a1a
commit a7c915b4fd
4 changed files with 29 additions and 2 deletions

View File

@ -23,4 +23,8 @@ class Config(context: Context) : BaseConfig(context) {
var editedTimeZoneTitles: Set<String>
get() = prefs.getStringSet(EDITED_TIME_ZONE_TITLES, HashSet())
set(editedTimeZoneTitles) = prefs.edit().putStringSet(EDITED_TIME_ZONE_TITLES, editedTimeZoneTitles).apply()
var lastTimerSeconds: Int
get() = prefs.getInt(LAST_TIMER_SECONDS, 300)
set(lastTimerSeconds) = prefs.edit().putInt(LAST_TIMER_SECONDS, lastTimerSeconds).apply()
}