From 70435de24b8a262cd12c6cdce074dbe9884a9146 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 22 Mar 2020 16:07:07 +0100 Subject: [PATCH] allow setting max 16:00 as weekly views start time --- .../calendar/pro/activities/SettingsActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt index 214cd3f0c..be53e9e29 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt @@ -298,7 +298,7 @@ class SettingsActivity : SimpleActivity() { settings_start_weekly_at.text = getHoursString(config.startWeeklyAt) settings_start_weekly_at_holder.setOnClickListener { val items = ArrayList() - (0..24).mapTo(items) { RadioItem(it, getHoursString(it)) } + (0..16).mapTo(items) { RadioItem(it, getHoursString(it)) } RadioGroupDialog(this@SettingsActivity, items, config.startWeeklyAt) { config.startWeeklyAt = it as Int