properly export/import the Highlight Weekends setting

This commit is contained in:
tibbi 2021-01-23 22:35:44 +01:00
parent 1eee7dab22
commit a7746b0d38
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,7 @@ class SettingsActivity : SimpleActivity() {
put(SNOOZE_TIME, config.snoozeTime) put(SNOOZE_TIME, config.snoozeTime)
put(USE_24_HOUR_FORMAT, config.use24HourFormat) put(USE_24_HOUR_FORMAT, config.use24HourFormat)
put(SUNDAY_FIRST, config.isSundayFirst) put(SUNDAY_FIRST, config.isSundayFirst)
put(HIGHLIGHT_WEEKENDS, config.highlightWeekends)
} }
exportSettings(configItems) exportSettings(configItems)
@ -777,6 +778,7 @@ class SettingsActivity : SimpleActivity() {
SNOOZE_TIME -> config.snoozeTime = value.toInt() SNOOZE_TIME -> config.snoozeTime = value.toInt()
USE_24_HOUR_FORMAT -> config.use24HourFormat = value.toBoolean() USE_24_HOUR_FORMAT -> config.use24HourFormat = value.toBoolean()
SUNDAY_FIRST -> config.isSundayFirst = value.toBoolean() SUNDAY_FIRST -> config.isSundayFirst = value.toBoolean()
HIGHLIGHT_WEEKENDS -> config.highlightWeekends = value.toBoolean()
} }
} }