insert the parsed caldav event in our db

This commit is contained in:
tibbi 2017-08-14 23:19:37 +02:00
parent ed69a4b900
commit 016b27e762

View file

@ -305,6 +305,15 @@ fun Context.fetchCalDAVCalendarEvents(calendarID: Long, eventTypeId: Int) {
reminders.getOrElse(1, { -1 }), reminders.getOrElse(2, { -1 }), repeatRule.repeatInterval,
importId, allDay, repeatRule.repeatLimit, repeatRule.repeatRule, eventTypeId, lastUpdated = System.currentTimeMillis(),
source = "$CALDAV-$calendarID")
if (event.getIsAllDay() && endTS > startTS) {
event.endTS -= DAY
}
dbHelper.insert(event) {
}
} while (cursor.moveToNext())
}
} finally {