mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fixing a glitch at checking CalDAV synced event exdates
This commit is contained in:
@ -243,8 +243,8 @@ 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) {
|
||||
val exdate = cursor.getStringValue(CalendarContract.Events.EXDATE) ?: ""
|
||||
if (exdate.isNotEmpty() && exdate.length > 8) {
|
||||
val dates = exdate.split(",")
|
||||
dates.forEach {
|
||||
event.repetitionExceptions.add(it.substring(0, 8))
|
||||
|
Reference in New Issue
Block a user