Show the faked title bar even content height is 0.
Otherwise for the new window, we may have a long
delay for showing progress which is only shown in
the faked title bar now.
I verified that we still get the benefit from the
previous change by moving the faked title bar from
sub panel to its own window.
Fix http://b/issue?id=2568875
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index c51c52b..8a70c56 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -824,10 +824,7 @@
&& !mActivityInPause) {
WebView mainView = mTabControl.getCurrentWebView();
// if there is no current WebView, don't show the faked title bar;
- // if the main WebView's contentHeight is 0, it means the WebView
- // hasn't finished the start up process yet. Don't try to show this
- // window which will slow down the starting process.
- if (mainView == null || mainView.getContentHeight() == 0) {
+ if (mainView == null) {
return;
}