diff --git a/app/src/main/java/org/hackillinois/android/view/scanner/ScannerFragment.kt b/app/src/main/java/org/hackillinois/android/view/scanner/ScannerFragment.kt index adbf801e2..b31c9189f 100644 --- a/app/src/main/java/org/hackillinois/android/view/scanner/ScannerFragment.kt +++ b/app/src/main/java/org/hackillinois/android/view/scanner/ScannerFragment.kt @@ -77,7 +77,7 @@ class ScannerFragment : Fragment() { } else { displayScanResult(it) } -// codeScanner.startPreview() + codeScanner.startPreview() }, ) roles.observe( @@ -246,7 +246,9 @@ class ScannerFragment : Fragment() { .setMessage(responseString) .setNegativeButton("OK") { dialog, id -> dialog.dismiss() - codeScanner.startPreview() + if (isMeetingAttendance) { + closeScannerPage() + } } alertDialog = builder.create() }