Skip to content

Update the scanner fragments displayed text depending on permission;

Tyler Sizse requested to merge issue_153_update_scanner_text into master

Closes #153 (closed). Update the scanner fragments to display "Camera permission required." when permission is denied.

NOTE: Changes were first made in GuestScanFragment.java, then tested and copied to ScanFragment.java

NOTE: Updated license in ScanFragment.java since it is using the new scanner implementation

TESTING:

  1. Uninstall the app from your device. Reinstall and run the app. Navigate to a scanner fragment in the app (Guest Forms -> Guest Visit Check In (Local Database)) or (Check Expiration Date -> Scan UPC).

  2. Deny the permission request. Make sure the status says "Camera Permission Required" and that the result text view is empty.

  3. Repeat step 1.

  4. Accept the permission. Make sure the status/result text views have their original messages.

  5. Scan a Code 39 barcode. Make sure the status view displays a message telling the user to confirm their scan.

Edited by Tyler Sizse

Merge request reports