Closed czlucius closed 2 years ago
https://github.com/czlucius/code-scanner/blob/2b487c2868267cd06f98f46dcb942facaaf5df79/app/src/main/java/com/czlucius/scan/ui/ScannerFragment.java#L223
As seen, the method onDestroyView returns when no codes are found. Hence, the camera may not close properly if no codes are scanned.
onDestroyView
Closing this issue. The value is initialised at start of the View Model, hence the camera would not be open even codes is null.
codes
https://github.com/czlucius/code-scanner/blob/2b487c2868267cd06f98f46dcb942facaaf5df79/app/src/main/java/com/czlucius/scan/ui/ScannerFragment.java#L223
As seen, the method
onDestroyView
returns when no codes are found. Hence, the camera may not close properly if no codes are scanned.