From dd2d17fee286854d185df31a7f4a16f46cd3ae65 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Feb 2017 18:21:23 +0100 Subject: [PATCH] properly handle custom repeat intervals --- .../main/kotlin/com/simplemobiletools/calendar/models/Event.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/models/Event.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/models/Event.kt index b64c57920..e68302958 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/models/Event.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/models/Event.kt @@ -21,7 +21,8 @@ data class Event(var id: Int = 0, var startTS: Int = 0, var endTS: Int = 0, var WEEK -> currStart.plusWeeks(1) BIWEEK -> currStart.plusWeeks(2) MONTH -> currStart.plusMonths(1) - else -> currStart.plusYears(1) + YEAR -> currStart.plusYears(1) + else -> currStart.plusSeconds(repeatInterval) } val newStartTS = newStart.seconds() val newEndTS = newStartTS + (endTS - startTS)