mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-17 03:40:38 +01:00
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mCameraState != STATE_PREVIEW && mCameraState != STATE_RECORDING) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (mIsRecording) {
|
if (mIsRecording) {
|
||||||
stopRecording()
|
stopRecording()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user