Camera: Block shutter button during mode switch
Video recording will crash if start recording before startpreview is
done, so we need to disable shutter button before preview is ready.
Move the function which block shutter button after showVideoSnapshotUI
as the button will be enabled inside this function.
Change-Id: I9b7c4e352bd1f15742a4bdb7494a2e53f25d7a99
CRs-fixed: 545612
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 124bdea..aba0aa7 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -791,10 +791,10 @@
public void onResumeAfterSuper() {
if (mActivity.mOpenCameraFail || mActivity.mCameraDisabled)
return;
- mUI.enableShutter(false);
mZoomValue = 0;
showVideoSnapshotUI(false);
+ mUI.enableShutter(false);
if (!mPreviewing && mStartPreviewThread == null) {
resetEffect();