summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2015-08-20 18:43:29 -0700
committerMichael Bestas <mikeioannina@gmail.com>2015-09-17 23:26:01 +0300
commitd2a585416a19a3a4a9552333d8aa41c36862d903 (patch)
tree1523b7f0f48f404fafcc81c774cd3dfd10e97f37
parent4c7b1b2eafbf85f959fb477e77e6b667f3a006ae (diff)
downloadandroid_packages_apps_Snap-d2a585416a19a3a4a9552333d8aa41c36862d903.zip
android_packages_apps_Snap-d2a585416a19a3a4a9552333d8aa41c36862d903.tar.gz
android_packages_apps_Snap-d2a585416a19a3a4a9552333d8aa41c36862d903.tar.bz2
SnapdragonCamera: Hide UI after error-checking video preferences
* Hiding the UI before error-checking the video preferences when video recording starts results in a broken UI when one of the error cases evaluates to be true. * Hide the UI after the error checking to prevent the UI from breaking when an error is found. Change-Id: Ia98798dbf2a33800d47497630714af17865767c6
-rw-r--r--src/com/android/camera/VideoModule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 9849a26..273ada9 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1603,7 +1603,6 @@ public class VideoModule implements CameraModule,
mStartRecPending = true;
mUI.cancelAnimations();
mUI.setSwipingEnabled(false);
- mUI.hideUIwhileRecording();
mActivity.updateStorageSpaceAndHint();
if (mActivity.getStorageSpaceBytes() <= Storage.LOW_STORAGE_THRESHOLD_BYTES) {
@@ -1671,6 +1670,8 @@ public class VideoModule implements CameraModule,
return;
}
+ mUI.hideUIwhileRecording();
+
// Make sure the video recording has started before announcing
// this in accessibility.
AccessibilityUtils.makeAnnouncement(mUI.getShutterButton(),