properly handle custom repeat intervals
This commit is contained in:
parent
a3ca6e74c3
commit
dd2d17fee2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue