diff options
author | Doris Liu <tianliu@google.com> | 2013-10-17 17:46:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-10-17 17:46:48 +0000 |
commit | 8470cae9049959ee6bb28cde1c53185f2ffd10a1 (patch) | |
tree | 4d59a5eff928fa20c58f9297971546a9f391c68a /src/com/android/camera/WideAnglePanoramaUI.java | |
parent | f149ec53a0fa3330617ce01751964662d3273c88 (diff) | |
parent | 3a45c33d74fe0ad0ade9be3d037560a53891c627 (diff) | |
download | android_packages_apps_Snap-8470cae9049959ee6bb28cde1c53185f2ffd10a1.tar.gz android_packages_apps_Snap-8470cae9049959ee6bb28cde1c53185f2ffd10a1.tar.bz2 android_packages_apps_Snap-8470cae9049959ee6bb28cde1c53185f2ffd10a1.zip |
Merge "Show a preview cover until real preview is ready" into gb-ub-photos-carlsbad
Diffstat (limited to 'src/com/android/camera/WideAnglePanoramaUI.java')
-rw-r--r-- | src/com/android/camera/WideAnglePanoramaUI.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java index da49638cc..b0f3de40b 100644 --- a/src/com/android/camera/WideAnglePanoramaUI.java +++ b/src/com/android/camera/WideAnglePanoramaUI.java @@ -89,6 +89,7 @@ public class WideAnglePanoramaUI implements private int mIndicatorColorFast; private int mReviewBackground; private SurfaceTexture mSurfaceTexture; + private View mPreviewCover; /** Constructor. */ public WideAnglePanoramaUI( @@ -225,6 +226,7 @@ public class WideAnglePanoramaUI implements @Override public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) { mSurfaceTexture = surfaceTexture; + mPreviewCover.setVisibility(View.GONE); mController.onPreviewUIReady(); } @@ -346,6 +348,7 @@ public class WideAnglePanoramaUI implements mReviewBackground = appRes.getColor(R.color.review_background); mIndicatorColorFast = appRes.getColor(R.color.pano_progress_indication_fast); + mPreviewCover = mRootView.findViewById(R.id.preview_cover); mPreviewLayout = mRootView.findViewById(R.id.pano_preview_layout); mReviewControl = (ViewGroup) mRootView.findViewById(R.id.pano_review_control); mReviewLayout = mRootView.findViewById(R.id.pano_review_layout); @@ -453,6 +456,10 @@ public class WideAnglePanoramaUI implements ((CameraRootView) mRootView).removeDisplayChangeListener(); } + public void showPreviewCover() { + mPreviewCover.setVisibility(View.VISIBLE); + } + private class DialogHelper { private ProgressDialog mProgressDialog; private AlertDialog mAlertDialog; |