summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PhotoUI.java
diff options
context:
space:
mode:
authorAndy Huibers <andyhuibers@google.com>2013-11-06 14:37:26 -0800
committerAndy Huibers <andyhuibers@google.com>2013-11-07 14:20:48 -0800
commitfccf83bd342a3a83dc284525488e69f25e4667c4 (patch)
tree56b4a59923d4d3de3ed140cd8a815f2fcc8e5d68 /src/com/android/camera/PhotoUI.java
parent2f878d54ecbb62ef09aa2b0152dea983e598724f (diff)
downloadandroid_packages_apps_Snap-fccf83bd342a3a83dc284525488e69f25e4667c4.tar.gz
android_packages_apps_Snap-fccf83bd342a3a83dc284525488e69f25e4667c4.tar.bz2
android_packages_apps_Snap-fccf83bd342a3a83dc284525488e69f25e4667c4.zip
hide preview cover on arrival of new preview data if hidden
Bug: 11433257 Change-Id: I7225ebf1d84bbefd2f952cfa524720a7e76e7181
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r--src/com/android/camera/PhotoUI.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java
index 524cd4654..744802f64 100644
--- a/src/com/android/camera/PhotoUI.java
+++ b/src/com/android/camera/PhotoUI.java
@@ -286,7 +286,6 @@ public class PhotoUI implements PieListener,
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
synchronized (mSurfaceTextureLock) {
Log.v(TAG, "SurfaceTexture ready.");
- mPreviewCover.setVisibility(View.GONE);
mSurfaceTexture = surface;
mController.onPreviewUIReady();
// Workaround for b/11168275, see b/10981460 for more details
@@ -314,7 +313,10 @@ public class PhotoUI implements PieListener,
@Override
public void onSurfaceTextureUpdated(SurfaceTexture surface) {
- // Do nothing.
+ // Make sure preview cover is hidden if preview data is available.
+ if (mPreviewCover.getVisibility() != View.GONE) {
+ mPreviewCover.setVisibility(View.GONE);
+ }
}
public View getRootView() {