diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt index 20c1bfa54..c91c6fe72 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -336,10 +336,11 @@ class SettingsActivity : SimpleActivity() { var displayPastEvents = config.displayPastEvents updatePastEventsText(displayPastEvents) settings_display_past_events_holder.setOnClickListener { - CustomIntervalPickerDialog(this, displayPastEvents) { - displayPastEvents = it - config.displayPastEvents = it - updatePastEventsText(it) + CustomIntervalPickerDialog(this, displayPastEvents * 60) { + val result = it / 60 + displayPastEvents = result + config.displayPastEvents = result + updatePastEventsText(result) } } }