summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaUI.java
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-10-15 19:10:28 -0700
committerDoris Liu <tianliu@google.com>2013-10-15 19:24:40 -0700
commit3a45c33d74fe0ad0ade9be3d037560a53891c627 (patch)
tree472570a2434bb07b1622afec9ce4e96397cab132 /src/com/android/camera/WideAnglePanoramaUI.java
parentd3e75bd748ce2be8fdcb30575bbde9bd07536bd3 (diff)
downloadandroid_packages_apps_Snap-3a45c33d74fe0ad0ade9be3d037560a53891c627.tar.gz
android_packages_apps_Snap-3a45c33d74fe0ad0ade9be3d037560a53891c627.tar.bz2
android_packages_apps_Snap-3a45c33d74fe0ad0ade9be3d037560a53891c627.zip
Show a preview cover until real preview is ready
Bug: 11211650 Change-Id: Ic4b26ef0f03eac0682e7be0d4bcb1c4632d85f39
Diffstat (limited to 'src/com/android/camera/WideAnglePanoramaUI.java')
-rw-r--r--src/com/android/camera/WideAnglePanoramaUI.java7
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;