summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwenbinw <wenbinw@codeaurora.org>2013-08-08 10:34:12 +0800
committerSteve Kondik <shade@chemlab.org>2013-10-18 15:54:49 -0700
commitfd188e6ecbee4f3d30c122016887232609f4bc8d (patch)
treec090878b1520e3b807170b71da31da790460a022
parent99bccd31bfba30f2e44f875551ee03325b70bdb5 (diff)
downloadandroid_packages_apps_Gallery2-fd188e6ecbee4f3d30c122016887232609f4bc8d.tar.gz
android_packages_apps_Gallery2-fd188e6ecbee4f3d30c122016887232609f4bc8d.tar.bz2
android_packages_apps_Gallery2-fd188e6ecbee4f3d30c122016887232609f4bc8d.zip
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
-rw-r--r--src/com/android/camera/VideoModule.java5
1 files 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(),