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

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

Merge "Keep overview mode when screen is rotated."

parents d3b6abc4 a5b3d807
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -805,8 +805,11 @@ 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.
                setZoomScale(Math.max(mActualScale, getZoomOverviewScale()),
                    mUpdateTextWrap, true);
                // Keep overview mode unchanged when rotating.
                final float zoomOverviewScale = getZoomOverviewScale();
                final float newScale = (mInZoomOverview) ?
                    zoomOverviewScale : Math.max(mActualScale, zoomOverviewScale); 
                setZoomScale(newScale, mUpdateTextWrap, true);
                // update the zoom buttons as the scale can be changed
                updateZoomPicker();
            }