properly stop recording when its stopped by switching to photo mode

This commit is contained in:
tibbi 2016-06-19 00:17:54 +02:00
parent ecd50486d2
commit cfded9650e

View File

@ -504,10 +504,10 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
} }
public void initPhotoMode() { public void initPhotoMode() {
mIsRecording = false;
mIsVideoMode = false;
stopRecording(); stopRecording();
cleanupRecorder(); cleanupRecorder();
mIsRecording = false;
mIsVideoMode = false;
} }
// VIDEO RECORDING // VIDEO RECORDING