Skip to content
Snippets Groups Projects
Verified Commit 701e51df authored by akwizgran's avatar akwizgran
Browse files

When resetting, restart camera if we've stopped it.

parent 33619228
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,15 @@ public class ShowQrCodeFragment extends BaseEventFragment
@UiThread
private void reset() {
// If we've stopped the camera view, restart it
if (gotRemotePayload) {
try {
cameraView.start(getScreenRotationDegrees());
} catch (CameraException e) {
logCameraExceptionAndFinish(e);
return;
}
}
statusView.setVisibility(INVISIBLE);
cameraView.setVisibility(VISIBLE);
gotRemotePayload = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment