From 30914b09a9cf632a572c9e32e85e5688e9e52923 Mon Sep 17 00:00:00 2001 From: florent champigny Date: Wed, 22 Feb 2017 14:20:16 +0100 Subject: [PATCH] v1.0.4 --- README.md | 2 +- build.gradle | 2 +- .../internal/controller/impl/Camera2Controller.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c1f888b..5b2a191 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ CameraFragment comes with some default views In your module [![Download](https://api.bintray.com/packages/florent37/maven/CameraFragment/images/download.svg)](https://bintray.com/florent37/maven/CameraFragment/_latestVersion) ```groovy -compile 'com.github.florent37:camerafragment:1.0.3' +compile 'com.github.florent37:camerafragment:1.0.4' ``` #Community diff --git a/build.gradle b/build.gradle index f0ca3bc..3abfd08 100644 --- a/build.gradle +++ b/build.gradle @@ -22,6 +22,6 @@ ext { sdk = 25 buildTools = "25.0.2" minSdk = 10 - libraryVersion = "1.0.3" + libraryVersion = "1.0.4" supportVersion = "25.1.0" } \ No newline at end of file diff --git a/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/controller/impl/Camera2Controller.java b/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/controller/impl/Camera2Controller.java index 1f3f813..de584a9 100644 --- a/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/controller/impl/Camera2Controller.java +++ b/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/controller/impl/Camera2Controller.java @@ -110,10 +110,10 @@ public class Camera2Controller implements CameraController, final String faceFrontCameraId = camera2Manager.getFaceFrontCameraId(); final String faceBackCameraId = camera2Manager.getFaceBackCameraId(); - if (cameraFace == Configuration.CAMERA_FACE_REAR && faceBackCameraId != null && !faceBackCameraId.equals(currentCameraId)) { + if (cameraFace == Configuration.CAMERA_FACE_REAR && faceBackCameraId != null) { setCurrentCameraId(faceBackCameraId); camera2Manager.closeCamera(this); - } else if (faceFrontCameraId != null && !faceFrontCameraId.equals(currentCameraId)) { + } else if (faceFrontCameraId != null) { setCurrentCameraId(faceFrontCameraId); camera2Manager.closeCamera(this); }