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

Commit 5b28c366 authored by Cary Clark's avatar Cary Clark
Browse files

Don't scroll on load if titlebar is visible

If the restore requests a scroll to zero and the titlebar is
partially or fully visible, skip the scroll altogether.

This fixes http://b/issue?id=2123079
parent 4b687f2e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4791,8 +4791,11 @@ public class WebView extends AbsoluteLayout
                            mMaxZoomScale = restoreState.mMaxScale;
                        }
                        setNewZoomScale(mLastScale, false);
                        if (getVisibleTitleHeight() == 0
                                || restoreState.mScrollY != 0) {
                            setContentScrollTo(restoreState.mScrollX,
                                    restoreState.mScrollY);
                        }
                        if (useWideViewport
                                && settings.getLoadWithOverviewMode()) {
                            if (restoreState.mViewScale == 0