mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-27 09:01:20 +01:00
fixing a glitch at checking CalDAV synced event exdates
This commit is contained in:
parent
26029e09c8
commit
26151b22ca
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user