mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-27 17:07:43 +01:00
fix #233, properly import multiple events in a row with empty importID
This commit is contained in:
parent
426313bb17
commit
7edb6c6b96
@ -117,7 +117,7 @@ class IcsImporter(val activity: SimpleActivity) {
|
||||
if (curTitle.isEmpty() || curStart == -1)
|
||||
continue
|
||||
|
||||
val eventToUpdate = existingEvents.firstOrNull { curImportId == it.importId }
|
||||
val eventToUpdate = existingEvents.firstOrNull { curImportId.isNotEmpty() && curImportId == it.importId }
|
||||
if (eventToUpdate != null && eventToUpdate.lastUpdated >= curLastModified) {
|
||||
continue
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user