summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/PhotoModule.java1
-rw-r--r--src/com/android/camera/PhotoUI.java3
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) {