Merge change 25280 into eclair

* changes:
  Don't scroll on load if titlebar is visible
This commit is contained in:
Android (Google) Code Review
2009-09-16 13:12:56 -04:00

View File

@@ -4791,8 +4791,11 @@ public class WebView extends AbsoluteLayout
mMaxZoomScale = restoreState.mMaxScale;
}
setNewZoomScale(mLastScale, false);
setContentScrollTo(restoreState.mScrollX,
restoreState.mScrollY);
if (getVisibleTitleHeight() == 0
|| restoreState.mScrollY != 0) {
setContentScrollTo(restoreState.mScrollX,
restoreState.mScrollY);
}
if (useWideViewport
&& settings.getLoadWithOverviewMode()) {
if (restoreState.mViewScale == 0