Update CameraView.java

fix wrong condition check in setSessionType
pull/52/head
Simon/Jinyu Liu 7 years ago committed by GitHub
parent f8d38e3c8c
commit 06acc10e87
  1. 2
      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);

Loading…
Cancel
Save