Always shift end date by one day for all-day events
Shift the end date by one day when the start and end date are equal. Previously this was only done when the end date is already ahead of the start date. An event with equal start and end date is created when the start and end times are equal before switching to all-day.
This commit is contained in:
parent
af095ccb7d
commit
d54becb446
|
@ -409,7 +409,7 @@ class CalDAVHelper(val context: Context) {
|
|||
put(CalendarContract.Events.RRULE, repeatRule)
|
||||
}
|
||||
|
||||
if (event.getIsAllDay() && event.endTS > event.startTS)
|
||||
if (event.getIsAllDay() && event.endTS >= event.startTS)
|
||||
event.endTS += DAY
|
||||
|
||||
if (event.repeatInterval > 0) {
|
||||
|
|
Loading…
Reference in New Issue