add a dialog for selecting extra timezones

This commit is contained in:
tibbi
2018-03-01 17:33:40 +01:00
parent d629ccaf94
commit e76847476e
7 changed files with 182 additions and 1 deletions

View File

@ -15,4 +15,8 @@ class Config(context: Context) : BaseConfig(context) {
var displayOtherTimeZones: Boolean
get() = prefs.getBoolean(DISPLAY_OTHER_TIME_ZONES, false)
set(displayOtherTimeZones) = prefs.edit().putBoolean(DISPLAY_OTHER_TIME_ZONES, displayOtherTimeZones).apply()
var selectedTimeZones: Set<String>
get() = prefs.getStringSet(SELECTED_TIME_ZONES, HashSet())
set(selectedTimeZones) = prefs.edit().putStringSet(SELECTED_TIME_ZONES, selectedTimeZones).apply()
}