From 43de61666cfc98a3acc41c7161a1a8b0bdb2b72b Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Mon, 14 Sep 2009 19:59:58 -0400 Subject: Prevent showing the title bar while the active tabs page is showing. When opening the active tabs page, hide the titlebar. Also, when attempting to show the title bar, do not do it if the active tabs page is showing. Change-Id: Iee7e76056317c3bdf7f5023d59745ecaf3a3bbc1 --- src/com/android/browser/BrowserActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 5d14793..a9fa8f5 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -946,7 +946,7 @@ public class BrowserActivity extends Activity } private void showFakeTitleBar() { - if (mFakeTitleBar == null) { + if (mFakeTitleBar == null || mActiveTabsPage != null) { final WebView webView = getTopWindow(); mFakeTitleBar = new TitleBar(this, webView); mFakeTitleBar.setTitleAndUrl(null, webView.getUrl()); @@ -1459,6 +1459,7 @@ public class BrowserActivity extends Activity case R.id.active_tabs_menu_id: mActiveTabsPage = new ActiveTabsPage(this, mTabControl); removeTabFromContentView(mTabControl.getCurrentTab()); + hideFakeTitleBar(); mContentView.addView(mActiveTabsPage, COVER_SCREEN_PARAMS); mActiveTabsPage.requestFocus(); mMenuState = EMPTY_MENU; -- cgit v1.1