mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
avoid importing the same event twice, if its twice in the ics file
This commit is contained in:
parent
2a69232ce5
commit
1ddce648a2
@ -84,6 +84,7 @@ class IcsParser {
|
|||||||
if (curTitle.isEmpty() || curStart == -1 || curEnd == -1 || importIDs.contains(curImportId))
|
if (curTitle.isEmpty() || curStart == -1 || curEnd == -1 || importIDs.contains(curImportId))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
importIDs.add(curImportId)
|
||||||
val event = Event(0, curStart, curEnd, curTitle, curDescription, curReminderMinutes, -1, -1, importId = curImportId, flags = curFlags)
|
val event = Event(0, curStart, curEnd, curTitle, curDescription, curReminderMinutes, -1, -1, importId = curImportId, flags = curFlags)
|
||||||
dbHelper.insert(event) { }
|
dbHelper.insert(event) { }
|
||||||
eventsImported++
|
eventsImported++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user