From 0494477c3bb968682f015ea00c7d1464e161119b Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Thu, 1 Mar 2018 19:42:48 +0100 Subject: [PATCH] Reset flags when stopping (#173) --- .../src/main/java/com/otaliastudios/cameraview/Camera1.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java b/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java index ed0bede5..8a00af0a 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java @@ -230,6 +230,8 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera mPreviewSize = null; mPictureSize = null; mIsBound = false; + mIsCapturingImage = false; + mIsCapturingVideo = false; LOG.w("onStop:", "Clean up.", "Returning."); if (error != null) throw new CameraException(error); }