add handling for front/back camera toggling

This commit is contained in:
tibbi 2018-06-04 23:06:33 +02:00
parent c75f1cabfa
commit f5e347c09e
1 changed files with 2 additions and 0 deletions

View File

@ -608,6 +608,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
override fun toggleFrontBackCamera() {
mUseFrontCamera = !mUseFrontCamera
closeCamera()
openCamera(mTextureView.width, mTextureView.height)
}
override fun toggleFlashlight() {