properly stop recording when its stopped by switching to photo mode
This commit is contained in:
parent
ecd50486d2
commit
cfded9650e
|
@ -504,10 +504,10 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
|||
}
|
||||
|
||||
public void initPhotoMode() {
|
||||
mIsRecording = false;
|
||||
mIsVideoMode = false;
|
||||
stopRecording();
|
||||
cleanupRecorder();
|
||||
mIsRecording = false;
|
||||
mIsVideoMode = false;
|
||||
}
|
||||
|
||||
// VIDEO RECORDING
|
||||
|
|
Loading…
Reference in New Issue