mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
use id instead of iCalUID at importing google events
This commit is contained in:
parent
eea1ab8261
commit
7eca2a7d65
@ -90,7 +90,7 @@ class FetchGoogleEventsTask(val activity: Activity) : AsyncTask<Void, Void, List
|
||||
continue
|
||||
|
||||
val lastUpdate = DateTime(googleEvent.updated).millis
|
||||
val importId = googleEvent.iCalUID
|
||||
val importId = googleEvent.id
|
||||
if (importIDs.contains(importId)) {
|
||||
val oldEvent = dbHelper.getEventWithImportId(importId)
|
||||
if (oldEvent != null) {
|
||||
|
@ -4,4 +4,4 @@ import com.google.gson.JsonArray
|
||||
import com.google.gson.JsonObject
|
||||
|
||||
data class GoogleEvent(val summary: String, val description: String?, val status: String, val start: GoogleEventDateTime, val end: GoogleEventDateTime,
|
||||
val reminders: JsonObject, val recurrence: JsonArray?, val iCalUID: String, val colorId: Int, val updated: String)
|
||||
val reminders: JsonObject, val recurrence: JsonArray?, val id: String, val colorId: Int, val updated: String)
|
||||
|
Loading…
x
Reference in New Issue
Block a user