mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-28 09:11:18 +01:00
avoid unnecessary caldav event updates
This commit is contained in:
parent
fa71f3a1de
commit
beb00ecf89
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user