allow setting max 16:00 as weekly views start time

This commit is contained in:
tibbi 2020-03-22 16:07:07 +01:00
parent 1f6200368a
commit 70435de24b
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class SettingsActivity : SimpleActivity() {
settings_start_weekly_at.text = getHoursString(config.startWeeklyAt) settings_start_weekly_at.text = getHoursString(config.startWeeklyAt)
settings_start_weekly_at_holder.setOnClickListener { settings_start_weekly_at_holder.setOnClickListener {
val items = ArrayList<RadioItem>() val items = ArrayList<RadioItem>()
(0..24).mapTo(items) { RadioItem(it, getHoursString(it)) } (0..16).mapTo(items) { RadioItem(it, getHoursString(it)) }
RadioGroupDialog(this@SettingsActivity, items, config.startWeeklyAt) { RadioGroupDialog(this@SettingsActivity, items, config.startWeeklyAt) {
config.startWeeklyAt = it as Int config.startWeeklyAt = it as Int