add camera state check to video recording toggle too
This commit is contained in:
parent
ac3a09dd85
commit
d57eb9ef98
|
@ -818,6 +818,10 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
return
|
||||
}
|
||||
|
||||
if (mCameraState != STATE_PREVIEW && mCameraState != STATE_RECORDING) {
|
||||
return
|
||||
}
|
||||
|
||||
if (mIsRecording) {
|
||||
stopRecording()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue