correct some time calculation at settings

This commit is contained in:
tibbi 2018-03-21 12:43:18 +01:00
parent 67870114d4
commit 055303e2d8
1 changed files with 5 additions and 4 deletions

View File

@ -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)
}
}
}