diff options
author | Sultanxda <sultanxda@gmail.com> | 2015-08-20 18:43:29 -0700 |
---|---|---|
committer | Chippa-a <vusal1372@gmail.com> | 2019-10-25 15:55:25 +0300 |
commit | 642b5f4b07c78bc0e9efbcd21780c713daf1f75b (patch) | |
tree | a4c88dff4fe8ea73b220e4344b49c113ed474ec9 | |
parent | 4f3f4f6ef39b525f6475a20b8c25c575fbfcac8a (diff) | |
download | android_packages_apps_Snap-642b5f4b07c78bc0e9efbcd21780c713daf1f75b.tar.gz android_packages_apps_Snap-642b5f4b07c78bc0e9efbcd21780c713daf1f75b.tar.bz2 android_packages_apps_Snap-642b5f4b07c78bc0e9efbcd21780c713daf1f75b.zip |
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.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(), |