diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-09-28 21:06:26 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-09-29 12:28:22 -0700 |
commit | c6e3c7823339031096af937464cb528f53e045cf (patch) | |
tree | a736a8a3b3d9d5abe5a8aa0393c0f29f0ba8887f /src | |
parent | 2d96a8e256c556816a27e22d9f1e27a4595255d1 (diff) | |
download | LegacyCamera-c6e3c7823339031096af937464cb528f53e045cf.zip LegacyCamera-c6e3c7823339031096af937464cb528f53e045cf.tar.gz LegacyCamera-c6e3c7823339031096af937464cb528f53e045cf.tar.bz2 |
Fix the bug that on-screen zoom ratio is not reset.
After onPause and onResume, zoom value is reset to 1x
but the on-screen text is not updated.
bug:3024097
Change-Id: I1e5be3732b79073da6582799bba54364e87e5d88
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/Camera.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index ea68bed..f8c44a0 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); |