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

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

Merge "Set the scale to be at least overview zoom scale."

parents ae6a65e7 0ed2bb5e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -727,7 +727,8 @@ class ZoomManager {
            if (mWebView.getWebViewCore() != null) {
                // we always force, in case our height changed, in which case we
                // still want to send the notification over to webkit.
                refreshZoomScale(mUpdateTextWrap);
                setZoomScale(Math.max(mActualScale, getZoomOverviewScale()),
                    mUpdateTextWrap, true);
                // update the zoom buttons as the scale can be changed
                updateZoomPicker();
            }
@@ -787,8 +788,6 @@ class ZoomManager {
                && Math.abs((viewWidth * mInvActualScale) - mZoomOverviewWidth) > 1))) {
            mInitialZoomOverview = false;
            setZoomScale(zoomOverviewScale, !willScaleTriggerZoom(mTextWrapScale));
        } else {
            mInZoomOverview = !exceedsMinScaleIncrement(mActualScale, zoomOverviewScale);
        }
    }