mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01: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 cursor = getEventsCursor(selection)
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user