mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
properly handle updating event importId at moving event to a different calendar
This commit is contained in:
@@ -166,6 +166,8 @@ class CalDAVEventsHandler(val context: Context) {
|
|||||||
val uri = CalendarContract.Events.CONTENT_URI
|
val uri = CalendarContract.Events.CONTENT_URI
|
||||||
val values = fillEventContentValues(event)
|
val values = fillEventContentValues(event)
|
||||||
val eventRemoteID = event.getCalDAVEventId()
|
val eventRemoteID = event.getCalDAVEventId()
|
||||||
|
event.importId = getCalDAVEventImportId(event.getCalDAVCalendarId(), eventRemoteID)
|
||||||
|
|
||||||
val newUri = ContentUris.withAppendedId(uri, eventRemoteID)
|
val newUri = ContentUris.withAppendedId(uri, eventRemoteID)
|
||||||
context.contentResolver.update(newUri, values, null, null)
|
context.contentResolver.update(newUri, values, null, null)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user