From 06acc10e879a4365883002c2c7361d1627abca01 Mon Sep 17 00:00:00 2001 From: Simon/Jinyu Liu Date: Thu, 28 Sep 2017 14:27:57 +1000 Subject: [PATCH] Update CameraView.java fix wrong condition check in setSessionType --- .../src/main/java/com/otaliastudios/cameraview/CameraView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/CameraView.java b/cameraview/src/main/java/com/otaliastudios/cameraview/CameraView.java index 692a378b..6fb6c83e 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/CameraView.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/CameraView.java @@ -926,7 +926,7 @@ public class CameraView extends FrameLayout { */ public void setSessionType(SessionType sessionType) { - if (sessionType == getSessionType() || isStopped()) { + if (sessionType != getSessionType() || isStopped()) { // Check did took place, or will happen on start(). mCameraController.setSessionType(sessionType);