From fd188e6ecbee4f3d30c122016887232609f4bc8d Mon Sep 17 00:00:00 2001 From: wenbinw Date: Thu, 8 Aug 2013 10:34:12 +0800 Subject: Camera: Fix swiping disabled after unsupported video prompt Before recording starts, some parameters will be checked. If failed, the recording will not run. So the swiping disable should be done after this check. Change-Id: I3e6b0bf1f5d5eb8eef333dac79e56e01bd51b43d CRs-Fixed: 523885 --- src/com/android/camera/VideoModule.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index db91e079e..59ec3a145 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1662,8 +1662,6 @@ public class VideoModule implements CameraModule, private void startVideoRecording() { Log.v(TAG, "startVideoRecording"); - mUI.enablePreviewThumb(false); - mActivity.setSwipingEnabled(false); mActivity.updateStorageSpaceAndHint(); if (mActivity.getStorageSpace() <= Storage.LOW_STORAGE_THRESHOLD) { @@ -1709,6 +1707,9 @@ public class VideoModule implements CameraModule, } } + mUI.enablePreviewThumb(false); + mActivity.setSwipingEnabled(false); + // Make sure the video recording has started before announcing // this in accessibility. AccessibilityUtils.makeAnnouncement(mActivity.getShutterButton(), -- cgit v1.2.3