From 55fbe8dd4b59f52d9253c47c71c2910da6959b20 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 8 Jun 2018 12:02:07 +0200 Subject: [PATCH] make sure the back camera is always open by default, if selected so --- .../com/simplemobiletools/camera/views/PreviewCameraTwo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt index 9c83363b..9a985166 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -102,7 +102,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie constructor(activity: MainActivity, textureView: AutoFitTextureView) : super(activity) { mActivity = activity mTextureView = textureView - mUseFrontCamera = activity.config.lastUsedCamera == activity.getMyCamera().getBackCameraId().toString() + mUseFrontCamera = !activity.config.alwaysOpenBackCamera && activity.config.lastUsedCamera == activity.getMyCamera().getBackCameraId().toString() mIsInVideoMode = !activity.config.initPhotoMode mTextureView.setOnTouchListener { view, event ->