Open busylee999 opened 7 years ago
Can you provide more info about what do you want to achieve?
In fact as a result this behavior I suppose, leads to crash. The case you can face crash:
Result will be a crash, I think, because lib does not release camera. I fixed this bug in my local copy of library.
Actually I've noticed this problem too (the original one of the post). once the activity start in OnResume
i call stopCamera()
but after that when the CameraManager.onSurfaceChanged
is called the QRCodeReaderView
recalls your internal startPreview()
method, which turns on the camera.
How did you solved that? :(
Force stoping camera does not working for me. If we stop camera and does not pause activity, CameraManager.onSurfaceChanged callback still fires and CameraManager startPreview method is being called