Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12c37caf authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Consider mInitialScale when setting min zoom scale." into honeycomb-mr1

parents 2c3ed826 633c3775
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1008,14 +1008,15 @@ class ZoomManager {
        final Point viewSize = drawData.mViewSize;
        updateZoomRange(viewState, viewSize.x, drawData.mMinPrefWidth);
        setupZoomOverviewWidth(drawData, mWebView.getViewWidth());
        final float overviewScale = getZoomOverviewScale();
        if (!mMinZoomScaleFixed) {
            mMinZoomScale = getZoomOverviewScale();
            mMinZoomScale = (mInitialScale > 0) ?
                    Math.min(mInitialScale, overviewScale) : overviewScale;
            mMaxZoomScale = Math.max(mMaxZoomScale, mMinZoomScale);
        }

        if (!mWebView.drawHistory()) {
            float scale;
            final float overviewScale = getZoomOverviewScale();
            WebSettings settings = mWebView.getSettings();

            if (mInitialScale > 0) {