Merge "On zoom to overview, reflow text, if necessary."

This commit is contained in:
Mangesh Ghiware
2011-09-12 09:46:49 -07:00
committed by Android (Google) Code Review

View File

@@ -651,6 +651,11 @@ class ZoomManager {
mTextWrapScale = newTextWrapScale;
refreshZoomScale(true);
} else if (!mInZoomOverview && willScaleTriggerZoom(getZoomOverviewScale())) {
// Reflow, if necessary.
if (mTextWrapScale > getReadingLevelScale()) {
mTextWrapScale = getReadingLevelScale();
refreshZoomScale(true);
}
zoomToOverview();
} else {
zoomToReadingLevelOrMore();