mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-02 19:47:29 +01:00
avoid event duplication by pressing OK at importing multiple times
This commit is contained in:
parent
bf8283985f
commit
25f490aeb9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user