add handling for front/back camera toggling
This commit is contained in:
parent
c75f1cabfa
commit
f5e347c09e
|
@ -608,6 +608,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
|
||||
override fun toggleFrontBackCamera() {
|
||||
mUseFrontCamera = !mUseFrontCamera
|
||||
closeCamera()
|
||||
openCamera(mTextureView.width, mTextureView.height)
|
||||
}
|
||||
|
||||
override fun toggleFlashlight() {
|
||||
|
|
Loading…
Reference in New Issue