Merge "Fix updateDoubleTapZoom logic" into ics-mr1

This commit is contained in:
John Reck
2011-12-02 14:47:04 -08:00
committed by Android (Google) Code Review

View File

@@ -522,11 +522,12 @@ class ZoomManager {
}
public void updateDoubleTapZoom(int doubleTapZoom) {
if (mInZoomOverview) {
mDoubleTapZoomFactor = doubleTapZoom / 100.0f;
mTextWrapScale = getReadingLevelScale();
refreshZoomScale(true);
}
boolean zoomIn = (mTextWrapScale - mActualScale) < .1f;
mDoubleTapZoomFactor = doubleTapZoom / 100.0f;
mTextWrapScale = getReadingLevelScale();
float newScale = zoomIn ? mTextWrapScale
: Math.min(mTextWrapScale, mActualScale);
setZoomScale(newScale, true, true);
}
public void refreshZoomScale(boolean reflowText) {