summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-09-29 12:30:31 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-29 12:30:31 -0700
commitda9b36836565feab82573e2a1d8713caad67b061 (patch)
tree197f142ae148bbdb4dea325b884c63ae0a289795
parentc94de55be78d58f58d2668b00beedd9c9307e2bf (diff)
parentc6e3c7823339031096af937464cb528f53e045cf (diff)
downloadLegacyCamera-da9b36836565feab82573e2a1d8713caad67b061.tar.gz
Merge "Fix the bug that on-screen zoom ratio is not reset." into gingerbread
-rw-r--r--src/com/android/camera/Camera.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index ea68bed5..f8c44a0f 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -999,7 +999,6 @@ public class Camera extends NoSearchActivity implements View.OnClickListener,
settings.getPreferenceGroup(R.xml.camera_preferences),
getZoomRatios(), mOrientationCompensation);
if (mParameters.isZoomSupported()) {
- mHeadUpDisplay.setZoomIndex(mZoomValue);
mHeadUpDisplay.setZoomListener(new ZoomControllerListener() {
public void onZoomChanged(
int index, float ratio, boolean isMoving) {
@@ -1014,6 +1013,9 @@ public class Camera extends NoSearchActivity implements View.OnClickListener,
private void attachHeadUpDisplay() {
mHeadUpDisplay.setOrientation(mOrientationCompensation);
+ if (mParameters.isZoomSupported()) {
+ mHeadUpDisplay.setZoomIndex(mZoomValue);
+ }
FrameLayout frame = (FrameLayout) findViewById(R.id.frame);
mGLRootView = new GLRootView(this);
mGLRootView.setContentPane(mHeadUpDisplay);