mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-04-24 06:47:27 +02:00
ignore empty importIDs at trying to delete them from google calendars
This commit is contained in:
parent
79e6e94c6d
commit
49d539b899
@ -328,7 +328,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
val selection = "$MAIN_TABLE_NAME.$COL_ID IN ($args)"
|
val selection = "$MAIN_TABLE_NAME.$COL_ID IN ($args)"
|
||||||
val cursor = getEventsCursor(selection)
|
val cursor = getEventsCursor(selection)
|
||||||
val events = fillEvents(cursor)
|
val events = fillEvents(cursor)
|
||||||
val importIDs = Array(events.size, { i -> (events[i].importId) })
|
val importIDs = Array(events.size, { i -> (events[i].importId) }).filter { it?.isNotEmpty() == true }
|
||||||
|
|
||||||
mDb.delete(MAIN_TABLE_NAME, selection, null)
|
mDb.delete(MAIN_TABLE_NAME, selection, null)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user