avoid event duplication by pressing OK at importing multiple times

This commit is contained in:
tibbi 2018-12-03 12:13:42 +01:00
parent bf8283985f
commit 25f490aeb9

View File

@ -67,6 +67,7 @@ class ImportEventsDialog(val activity: SimpleActivity, val path: String, val cal
.create().apply {
activity.setupDialogStuff(view, this, R.string.import_events) {
getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(null)
activity.toast(R.string.importing)
Thread {
val overrideFileEventTypes = view.import_events_checkbox.isChecked