execute deleteAllEvents on a background thread
This commit is contained in:
parent
7d9b55f064
commit
1a030b8704
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ class SettingsActivity : SimpleActivity() {
|
|||
private fun setupDeleteAllEvents() {
|
||||
settings_delete_all_events_holder.setOnClickListener {
|
||||
ConfirmationDialog(this, messageId = R.string.delete_all_events_confirmation) {
|
||||
dbHelper.deleteAllEvents()
|
||||
Thread {
|
||||
dbHelper.deleteAllEvents()
|
||||
}.start()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue