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);