avoid importing the same event twice, if its twice in the ics file
This commit is contained in:
parent
2a69232ce5
commit
1ddce648a2
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ class IcsParser {
|
|||
if (curTitle.isEmpty() || curStart == -1 || curEnd == -1 || importIDs.contains(curImportId))
|
||||
continue
|
||||
|
||||
importIDs.add(curImportId)
|
||||
val event = Event(0, curStart, curEnd, curTitle, curDescription, curReminderMinutes, -1, -1, importId = curImportId, flags = curFlags)
|
||||
dbHelper.insert(event) { }
|
||||
eventsImported++
|
||||
|
|
Loading…
Reference in a new issue