make sure the back camera is always open by default, if selected so
This commit is contained in:
parent
4d06be8b4d
commit
55fbe8dd4b
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue