Update the scanner fragments displayed text depending on permission;
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:
-
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).
-
Deny the permission request. Make sure the status says "Camera Permission Required" and that the result text view is empty.
-
Repeat step 1.
-
Accept the permission. Make sure the status/result text views have their original messages.
-
Scan a Code 39 barcode. Make sure the status view displays a message telling the user to confirm their scan.