mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-11 17:47:40 -04:00
add camera state check to video recording toggle too
This commit is contained in:
@@ -818,6 +818,10 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||
return
|
||||
}
|
||||
|
||||
if (mCameraState != STATE_PREVIEW && mCameraState != STATE_RECORDING) {
|
||||
return
|
||||
}
|
||||
|
||||
if (mIsRecording) {
|
||||
stopRecording()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user