mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2024-12-26 07:13:21 +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
|
mRecorder = null
|
||||||
mIsRecording = false
|
if (mIsRecording) {
|
||||||
mActivity!!.setRecordingState(false)
|
mActivity!!.setRecordingState(false)
|
||||||
|
}
|
||||||
|
mIsRecording = false
|
||||||
|
|
||||||
val file = File(mCurrVideoPath)
|
val file = File(mCurrVideoPath)
|
||||||
if (file.exists() && file.length() == 0L) {
|
if (file.exists() && file.length() == 0L) {
|
||||||
|
Loading…
Reference in New Issue
Block a user