insert the parsed caldav event in our db
This commit is contained in:
parent
ed69a4b900
commit
016b27e762
|
@ -305,6 +305,15 @@ fun Context.fetchCalDAVCalendarEvents(calendarID: Long, eventTypeId: Int) {
|
||||||
reminders.getOrElse(1, { -1 }), reminders.getOrElse(2, { -1 }), repeatRule.repeatInterval,
|
reminders.getOrElse(1, { -1 }), reminders.getOrElse(2, { -1 }), repeatRule.repeatInterval,
|
||||||
importId, allDay, repeatRule.repeatLimit, repeatRule.repeatRule, eventTypeId, lastUpdated = System.currentTimeMillis(),
|
importId, allDay, repeatRule.repeatLimit, repeatRule.repeatRule, eventTypeId, lastUpdated = System.currentTimeMillis(),
|
||||||
source = "$CALDAV-$calendarID")
|
source = "$CALDAV-$calendarID")
|
||||||
|
|
||||||
|
|
||||||
|
if (event.getIsAllDay() && endTS > startTS) {
|
||||||
|
event.endTS -= DAY
|
||||||
|
}
|
||||||
|
|
||||||
|
dbHelper.insert(event) {
|
||||||
|
|
||||||
|
}
|
||||||
} while (cursor.moveToNext())
|
} while (cursor.moveToNext())
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue