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