execute deleteAllEvents on a background thread

This commit is contained in:
tibbi 2018-02-21 14:16:14 +01:00
parent 7d9b55f064
commit 1a030b8704

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