mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-28 09:11:18 +01:00
fix #123, allow deleting all events
This commit is contained in:
parent
58102447af
commit
7bf1d92532
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user