avoid importing the same event twice, if its twice in the ics file

This commit is contained in:
tibbi 2017-02-19 19:13:06 +01:00
parent 2a69232ce5
commit 1ddce648a2
1 changed files with 1 additions and 0 deletions

View File

@ -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++