properly init front/back camera

This commit is contained in:
tibbi 2018-06-10 23:08:18 +02:00
parent e240e0752f
commit 9dc29390f1
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,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.alwaysOpenBackCamera && activity.config.lastUsedCamera == activity.getMyCamera().getBackCameraId().toString() mUseFrontCamera = !activity.config.alwaysOpenBackCamera && activity.config.lastUsedCamera == activity.getMyCamera().getFrontCameraId().toString()
mIsInVideoMode = !activity.config.initPhotoMode mIsInVideoMode = !activity.config.initPhotoMode
loadSounds() loadSounds()