mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
properly import all-day events
This commit is contained in:
@@ -93,6 +93,10 @@ class IcsImporter {
|
|||||||
curReminderMinutes.getOrElse(1, { -1 }), curReminderMinutes.getOrElse(2, { -1 }), curRepeatInterval,
|
curReminderMinutes.getOrElse(1, { -1 }), curReminderMinutes.getOrElse(2, { -1 }), curRepeatInterval,
|
||||||
curImportId, curFlags, curRepeatLimit, curRepeatRule, curEventType)
|
curImportId, curFlags, curRepeatLimit, curRepeatRule, curEventType)
|
||||||
|
|
||||||
|
if (event.isAllDay && curEnd > curStart) {
|
||||||
|
event.endTS -= DAY
|
||||||
|
}
|
||||||
|
|
||||||
val eventId = context.dbHelper.insert(event)
|
val eventId = context.dbHelper.insert(event)
|
||||||
|
|
||||||
for (exceptionTS in curRepeatExceptions) {
|
for (exceptionTS in curRepeatExceptions) {
|
||||||
|
Reference in New Issue
Block a user