fix #123, allow deleting all events

This commit is contained in:
tibbi 2018-02-01 00:03:51 +01:00
parent 58102447af
commit 7bf1d92532

View File

@ -427,7 +427,9 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
}
fun deleteAllEvents() {
val cursor = getEventsCursor()
val events = fillEvents(cursor).map { it.id.toString() }.toTypedArray()
deleteEvents(events, true)
}
fun deleteEvents(ids: Array<String>, deleteFromCalDAV: Boolean) {