make sure the back camera is always open by default, if selected so

This commit is contained in:
tibbi 2018-06-08 12:02:07 +02:00
parent 4d06be8b4d
commit 55fbe8dd4b
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
constructor(activity: MainActivity, textureView: AutoFitTextureView) : super(activity) { constructor(activity: MainActivity, textureView: AutoFitTextureView) : super(activity) {
mActivity = activity mActivity = activity
mTextureView = textureView 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 mIsInVideoMode = !activity.config.initPhotoMode
mTextureView.setOnTouchListener { view, event -> mTextureView.setOnTouchListener { view, event ->