diff --git a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/MainActivity.kt b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/MainActivity.kt index 1c76e07..96faea4 100644 --- a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/MainActivity.kt +++ b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/MainActivity.kt @@ -948,8 +948,11 @@ class MainActivity : AppCompatActivity(), ReloadableActivity, ScannerView.Result if (dialog?.isShowing() == true) { /* - * Skip scan if a dialog is still in front. This forces users to answer the questions asked. + * Skip scan if a dialog is still in front. + * This forces users to answer the questions asked. + * The scan data is passed to the dialog, maybe it wants to fill a field with it. */ + dialog!!.handleScan(raw_result) return } diff --git a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/UnpaidOrderDialogHelper.kt b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/UnpaidOrderDialogHelper.kt index 183a949..0fdf807 100644 --- a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/UnpaidOrderDialogHelper.kt +++ b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/ui/UnpaidOrderDialogHelper.kt @@ -29,6 +29,9 @@ class UnpaidDialog(ctx: Activity, val secret: String, val answers: MutableList