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

Commit 05983279 authored by John Reck's avatar John Reck
Browse files

Fix updateDoubleTapZoom logic

 Bug: 5698099

Change-Id: I83578e57cf809cbe7781d988302f0925dfddec80
parent 335c4e6c
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -522,11 +522,12 @@ class ZoomManager {
    }

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

    public void refreshZoomScale(boolean reflowText) {