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
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 @@
}
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 @@
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;