summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaUI.java
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-22 01:57:02 +0100
committerArne Coucheron <arco68@gmail.com>2018-01-26 01:09:05 +0100
commite58747d32ce2873300e336ab1fe762fbad60f500 (patch)
tree9c09e1699c1f67a05b4eb6d52e93d99ae0505ab6 /src/com/android/camera/WideAnglePanoramaUI.java
parent331f645f332a7c6d130e3411c58e78c54477643d (diff)
downloadandroid_packages_apps_Snap-e58747d32ce2873300e336ab1fe762fbad60f500.tar.gz
android_packages_apps_Snap-e58747d32ce2873300e336ab1fe762fbad60f500.tar.bz2
android_packages_apps_Snap-e58747d32ce2873300e336ab1fe762fbad60f500.zip
snap: Panorama fixes
Change-Id: I9474219c57fc204dd16797aa8921296e61cc9d37
Diffstat (limited to 'src/com/android/camera/WideAnglePanoramaUI.java')
-rw-r--r--src/com/android/camera/WideAnglePanoramaUI.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java
index f2c6e2bb7..99b08b9b5 100644
--- a/src/com/android/camera/WideAnglePanoramaUI.java
+++ b/src/com/android/camera/WideAnglePanoramaUI.java
@@ -99,7 +99,6 @@ public class WideAnglePanoramaUI implements
// Color definitions.
private int mIndicatorColor;
private int mIndicatorColorFast;
- private int mReviewBackground;
private SurfaceTexture mSurfaceTexture;
private View mPreviewCover;
@@ -442,7 +441,6 @@ public class WideAnglePanoramaUI implements
Resources appRes = mActivity.getResources();
mIndicatorColor = appRes.getColor(R.color.pano_progress_indication);
- mReviewBackground = appRes.getColor(R.color.review_background);
mIndicatorColorFast = appRes.getColor(R.color.pano_progress_indication_fast);
mPreviewCover = mRootView.findViewById(R.id.preview_cover);
@@ -471,7 +469,6 @@ public class WideAnglePanoramaUI implements
mShutterButton.setOnShutterButtonListener(this);
// Hide menu
mRootView.findViewById(R.id.menu).setVisibility(View.GONE);
- mReview.setBackgroundColor(mReviewBackground);
// TODO: set display change listener properly.
((CameraRootView) mRootView).setDisplayChangeListener(null);
@@ -707,4 +704,11 @@ public class WideAnglePanoramaUI implements
mCameraControls.setOrientation(orientation, animation);
RotateTextToast.setOrientation(orientation);
}
+
+ public void hidePreviewCover() {
+ // Hide the preview cover if need.
+ if (mPreviewCover.getVisibility() != View.GONE) {
+ mPreviewCover.setVisibility(View.GONE);
+ }
+ }
}