From 642b5f4b07c78bc0e9efbcd21780c713daf1f75b 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(-) (limited to 'src/com') diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index fc65eb5bc..55db5a611 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1851,7 +1851,6 @@ public class VideoModule implements CameraModule, mStartRecPending = true; mUI.cancelAnimations(); mUI.setSwipingEnabled(false); - mUI.hideUIwhileRecording(); // When recording request is sent before starting preview, onPreviewFrame() // callback doesn't happen so removing preview cover here, instead. if (mUI.isPreviewCoverVisible()) { @@ -1924,6 +1923,8 @@ public class VideoModule implements CameraModule, return false; } + mUI.hideUIwhileRecording(); + // Make sure the video recording has started before announcing // this in accessibility. AccessibilityUtils.makeAnnouncement(mUI.getShutterButton(), -- cgit v1.2.3