mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
avoid unnecessary caldav event updates
This commit is contained in:
@ -251,6 +251,8 @@ class CalDAVHandler(val context: Context) {
|
|||||||
val existingEvent = importIdsMap[importId]
|
val existingEvent = importIdsMap[importId]
|
||||||
val originalEventId = existingEvent!!.id
|
val originalEventId = existingEvent!!.id
|
||||||
existingEvent.id = 0
|
existingEvent.id = 0
|
||||||
|
existingEvent.color = 0
|
||||||
|
existingEvent.ignoreEventOccurrences = ArrayList()
|
||||||
if (existingEvent.hashCode() != event.hashCode() && title.isNotEmpty()) {
|
if (existingEvent.hashCode() != event.hashCode() && title.isNotEmpty()) {
|
||||||
event.id = originalEventId
|
event.id = originalEventId
|
||||||
context.dbHelper.update(event, false)
|
context.dbHelper.update(event, false)
|
||||||
|
Reference in New Issue
Block a user