mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-15 10:08:55 +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() {
|
fun deleteAllEvents() {
|
||||||
|
val cursor = getEventsCursor()
|
||||||
|
val events = fillEvents(cursor).map { it.id.toString() }.toTypedArray()
|
||||||
|
deleteEvents(events, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun deleteEvents(ids: Array<String>, deleteFromCalDAV: Boolean) {
|
fun deleteEvents(ids: Array<String>, deleteFromCalDAV: Boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user