diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt index 6cfeb1a91..58a984037 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -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() } } }