Show the fake title bar when loading regardless of scroll position.
Fix for http://b/issue?id=2131516
Change-Id: I7d5e02928a36d732b4fc4a2a6b47d7f59e473de1
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 4a8ddb4..f67292a 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -2425,11 +2425,7 @@
CookieSyncManager.getInstance().resetSync();
mInLoad = true;
- WebView currentWebView = mTabControl.getCurrentWebView();
- if (currentWebView == null || currentWebView.getScrollY() != 0) {
- // This page has begun to load, so show the title bar
- showFakeTitleBar();
- }
+ showFakeTitleBar();
updateInLoadMenuItems();
if (!mIsNetworkUp) {
createAndShowNetworkDialog();
@@ -3089,9 +3085,7 @@
// and update the menu items.
mInLoad = true;
updateInLoadMenuItems();
- WebView currentWebView = mTabControl.getCurrentWebView();
- if ((currentWebView == null || currentWebView.getScrollY() != 0)
- && (!mOptionsMenuOpen || mIconView)) {
+ if (!mOptionsMenuOpen || mIconView) {
// This page has begun to load, so show the title bar
showFakeTitleBar();
}