mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
avoid event duplication by pressing OK at importing multiple times
This commit is contained in:
@@ -67,6 +67,7 @@ class ImportEventsDialog(val activity: SimpleActivity, val path: String, val cal
|
|||||||
.create().apply {
|
.create().apply {
|
||||||
activity.setupDialogStuff(view, this, R.string.import_events) {
|
activity.setupDialogStuff(view, this, R.string.import_events) {
|
||||||
getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
||||||
|
getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(null)
|
||||||
activity.toast(R.string.importing)
|
activity.toast(R.string.importing)
|
||||||
Thread {
|
Thread {
|
||||||
val overrideFileEventTypes = view.import_events_checkbox.isChecked
|
val overrideFileEventTypes = view.import_events_checkbox.isChecked
|
||||||
|
Reference in New Issue
Block a user