diff options
author | Leon Scroggins <scroggo@google.com> | 2009-09-14 19:59:58 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-09-15 11:31:38 -0400 |
commit | 43de61666cfc98a3acc41c7161a1a8b0bdb2b72b (patch) | |
tree | 3fd3617b0636d989838c986656515285ffd762a5 | |
parent | db22ea70c4e0cb753ee224d2185d91379584d13b (diff) | |
download | packages_apps_browser-43de61666cfc98a3acc41c7161a1a8b0bdb2b72b.zip packages_apps_browser-43de61666cfc98a3acc41c7161a1a8b0bdb2b72b.tar.gz packages_apps_browser-43de61666cfc98a3acc41c7161a1a8b0bdb2b72b.tar.bz2 |
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
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; |