diff options
author | Doris Liu <tianliu@google.com> | 2013-04-10 16:43:43 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2013-04-10 16:43:43 -0700 |
commit | 28dc7f348b70ee6735d208b48ca12a94e9cd222f (patch) | |
tree | 3f2cb369747ac7038f8fbd6a0cecd3f7da8d61fa | |
parent | 97963eb474d44d7c0e059f5c0d1f0564c79d4f06 (diff) | |
download | android_packages_apps_Snap-28dc7f348b70ee6735d208b48ca12a94e9cd222f.tar.gz android_packages_apps_Snap-28dc7f348b70ee6735d208b48ca12a94e9cd222f.tar.bz2 android_packages_apps_Snap-28dc7f348b70ee6735d208b48ca12a94e9cd222f.zip |
Fix camera preview being squished
Bug: 8585407
Change-Id: Ie9a3a44c58599f4cccfa0017d48749e9883af6cd
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 1 | ||||
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 7c0c15a82..8759c19d9 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -590,6 +590,7 @@ public class PhotoModule if (mFocusManager != null) mFocusManager.setPreviewSize(width, height); ((CameraScreenNail) mActivity.mCameraScreenNail).setPreviewFrameLayoutSize( previewWidth, previewHeight); + mActivity.notifyScreenNailChanged(); } private void resetExposureCompensation() { diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index 29ebd6a70..53fdc969e 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -144,7 +144,6 @@ public class PhotoUI implements PieListener, } } - mRootView.addOnLayoutChangeListener(mLayoutListener); } public View getRootView() { @@ -259,6 +258,7 @@ public class PhotoUI implements PieListener, mShutterButton.setImageResource(R.drawable.btn_new_shutter); mShutterButton.setOnShutterButtonListener(mController); mShutterButton.setVisibility(View.VISIBLE); + mRootView.addOnLayoutChangeListener(mLayoutListener); } // called from onResume every other time @@ -270,6 +270,7 @@ public class PhotoUI implements PieListener, if (mMenu != null) { mMenu.reloadPreferences(); } + mRootView.addOnLayoutChangeListener(mLayoutListener); } public void initializeZoom(Camera.Parameters params) { |