Reset flags when stopping (#173)

pull/174/head
Mattia Iavarone 7 years ago committed by GitHub
parent c1973b0d71
commit 0494477c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java

@ -230,6 +230,8 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera
mPreviewSize = null; mPreviewSize = null;
mPictureSize = null; mPictureSize = null;
mIsBound = false; mIsBound = false;
mIsCapturingImage = false;
mIsCapturingVideo = false;
LOG.w("onStop:", "Clean up.", "Returning."); LOG.w("onStop:", "Clean up.", "Returning.");
if (error != null) throw new CameraException(error); if (error != null) throw new CameraException(error);
} }

Loading…
Cancel
Save