From d2a585416a19a3a4a9552333d8aa41c36862d903 Mon Sep 17 00:00:00 2001 From: Sultanxda Date: Thu, 20 Aug 2015 18:43:29 -0700 Subject: 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 --- src/com/android/camera/VideoModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 9849a26de..273ada957 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(), -- cgit v1.2.3