@ -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
@ -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"
}
@ -110,10 +110,10 @@ public class Camera2Controller implements CameraController<String>,
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);