Merge branch 'master' into request_2

# Conflicts:
#	app/src/main/kotlin/com/simplemobiletools/clock/helpers/Constants.kt
This commit is contained in:
Pavol Franek
2020-03-15 07:50:45 +01:00
4 changed files with 28 additions and 7 deletions

View File

@ -74,4 +74,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()
}