mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2024-12-25 15:00:49 +01:00
send setRecordingState false to CameraOne only if the recording is really stoping
This commit is contained in:
parent
a39e7ad233
commit
ff85805636
@ -849,8 +849,10 @@ class PreviewCameraOne : ViewGroup, SurfaceHolder.Callback, MyPreview {
|
||||
}
|
||||
|
||||
mRecorder = null
|
||||
if (mIsRecording) {
|
||||
mActivity!!.setRecordingState(false)
|
||||
}
|
||||
mIsRecording = false
|
||||
mActivity!!.setRecordingState(false)
|
||||
|
||||
val file = File(mCurrVideoPath)
|
||||
if (file.exists() && file.length() == 0L) {
|
||||
|
Loading…
Reference in New Issue
Block a user