summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-04-02 23:37:26 -0700
committerGrace Kloba <klobag@google.com>2010-04-02 23:37:26 -0700
commit65190702c53f2d3ceb8e3c88d707bd6ff874034c (patch)
treeb9bd39737c33ff30b9daccf81b12b62263605ff3 /src/com/android
parent1087c1135d91523991ff5965d8800663e79cf030 (diff)
downloadpackages_apps_Browser-65190702c53f2d3ceb8e3c88d707bd6ff874034c.zip
packages_apps_Browser-65190702c53f2d3ceb8e3c88d707bd6ff874034c.tar.gz
packages_apps_Browser-65190702c53f2d3ceb8e3c88d707bd6ff874034c.tar.bz2
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
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/BrowserActivity.java5
1 files changed, 1 insertions, 4 deletions
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 @@ public class BrowserActivity extends Activity
&& !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;
}