summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PanoramaModule.java
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-02-26 10:54:25 -0800
committerDoris Liu <tianliu@google.com>2013-03-04 10:09:40 -0800
commit6a0de79a7066d4ae5cc4677f88989abd15e892ff (patch)
tree249b2f8e0d15d8410df9bb3bc45e9466846c678f /src/com/android/camera/PanoramaModule.java
parent089b1490d0ead0512e734e6f23b70e7bbdf885e0 (diff)
downloadandroid_packages_apps_Snap-6a0de79a7066d4ae5cc4677f88989abd15e892ff.tar.gz
android_packages_apps_Snap-6a0de79a7066d4ae5cc4677f88989abd15e892ff.tar.bz2
android_packages_apps_Snap-6a0de79a7066d4ae5cc4677f88989abd15e892ff.zip
Flatten view hierarchy and rotate views
TODO: SRI pano and Lightcycle can use a bit more flattening. I will get to them next. (Maybe in a different CL.) TODO: Need to cancel capture animation in onConfigurationChanged() Change-Id: I00fd3e098117d9fb74fde2c128407ab6275bcedf
Diffstat (limited to 'src/com/android/camera/PanoramaModule.java')
-rw-r--r--src/com/android/camera/PanoramaModule.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/camera/PanoramaModule.java b/src/com/android/camera/PanoramaModule.java
index 4edc68657..d12c8286e 100644
--- a/src/com/android/camera/PanoramaModule.java
+++ b/src/com/android/camera/PanoramaModule.java
@@ -714,13 +714,13 @@ public class PanoramaModule implements CameraModule,
}
private void createContentView() {
- mActivity.getLayoutInflater().inflate(R.layout.panorama_module, (ViewGroup) mRootView);
+ mActivity.getLayoutInflater().inflate(R.layout.panorama_module, (ViewGroup) mRootView, true);
Resources appRes = mActivity.getResources();
- mCaptureLayout = (LinearLayout) mRootView.findViewById(R.id.camera_app_root);
+ mCaptureLayout = (LinearLayout) mRootView.findViewById(R.id.camera_app);
mIndicatorColor = appRes.getColor(R.color.pano_progress_indication);
mReviewBackground = appRes.getColor(R.color.review_background);
mIndicatorColorFast = appRes.getColor(R.color.pano_progress_indication_fast);
- mPanoLayout = (ViewGroup) mRootView.findViewById(R.id.pano_layout);
+ mPanoLayout = (ViewGroup) mRootView.findViewById(R.id.camera_app_root);
mRotateDialog = new RotateDialogController(mActivity, R.layout.rotate_dialog);
setViews(appRes);
}
@@ -1308,6 +1308,11 @@ public class PanoramaModule implements CameraModule,
}
@Override
+ public boolean needsPieMenu() {
+ return false;
+ }
+
+ @Override
public void onShowSwitcherPopup() {
}