execute deleteAllEvents on a background thread

This commit is contained in:
tibbi 2018-02-21 14:16:14 +01:00
parent 7d9b55f064
commit 1a030b8704
1 changed files with 3 additions and 1 deletions

View File

@ -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) {
Thread {
dbHelper.deleteAllEvents()
}.start()
}
}
}