mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02: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