avoid unnecessary caldav event updates

This commit is contained in:
tibbi 2018-01-10 23:43:20 +01:00
parent fa71f3a1de
commit beb00ecf89

View File

@ -251,6 +251,8 @@ class CalDAVHandler(val context: Context) {
val existingEvent = importIdsMap[importId]
val originalEventId = existingEvent!!.id
existingEvent.id = 0
existingEvent.color = 0
existingEvent.ignoreEventOccurrences = ArrayList()
if (existingEvent.hashCode() != event.hashCode() && title.isNotEmpty()) {
event.id = originalEventId
context.dbHelper.update(event, false)