fix #158, handle multiple EXDATEs separated by commas

This commit is contained in:
tibbi 2019-01-07 20:51:05 +01:00
parent f19636e034
commit 9d55d67da8
1 changed files with 4 additions and 1 deletions

View File

@ -245,7 +245,10 @@ class CalDAVHelper(val context: Context) {
// some calendars add repeatable event exceptions with using the "exdate" field, not by creating a child event that is an exception
val exdate = cursor.getStringValue(CalendarContract.Events.EXDATE)
if (exdate != null) {
event.repetitionExceptions.add(exdate.substring(0, 8))
val dates = exdate.split(",")
dates.forEach {
event.repetitionExceptions.add(it.substring(0, 8))
}
}
if (importIdsMap.containsKey(event.importId)) {