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