diff options
author | John Reck <jreck@google.com> | 2012-04-19 13:12:35 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-04-19 13:12:35 -0700 |
commit | bc82ec97530f9ee4fc1f33e7d1d6050575c22a21 (patch) | |
tree | 1fcd07efac6d5ba8f6ae4eb3053ab2d5b7743f2c | |
parent | 2b71d6dad1cbdc84da3eed140429a102971a1106 (diff) | |
download | packages_apps_Browser-bc82ec97530f9ee4fc1f33e7d1d6050575c22a21.zip packages_apps_Browser-bc82ec97530f9ee4fc1f33e7d1d6050575c22a21.tar.gz packages_apps_Browser-bc82ec97530f9ee4fc1f33e7d1d6050575c22a21.tar.bz2 |
Title bar tweaks
Bug: 5677901
Delay hiding after page load
Show for duration on tab switch
Change-Id: Ie962cd86fd3bd6f5d10a807db1638e9cbdbfef67
-rw-r--r-- | src/com/android/browser/BaseUi.java | 5 | ||||
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 17 | ||||
-rw-r--r-- | src/com/android/browser/TitleBar.java | 3 |
3 files changed, 2 insertions, 23 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 54b2f18..8d2b6f0 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -282,11 +282,6 @@ public abstract class BaseUi implements UI { onProgressChanged(tab); mNavigationBar.setIncognitoMode(tab.isPrivateBrowsingEnabled()); updateAutoLogin(tab, false); - if (web != null && web.getVisibleTitleHeight() - != mTitleBar.getEmbeddedHeight() - && !mUseQuickControls) { - showTitleBarForDuration(); - } } protected void updateUrlBarAutoShowManagerTarget() { diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index 7db5563..7f64643 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -53,8 +53,6 @@ public class PhoneUi extends BaseUi { private NavigationBarPhone mNavigationBar; private int mActionBarHeight; - boolean mExtendedMenuOpen; - boolean mOptionsMenuOpen; boolean mAnimating; /** @@ -108,21 +106,6 @@ public class PhoneUi extends BaseUi { if (tab.inForeground()) { int progress = tab.getLoadProgress(); mTitleBar.setProgress(progress); - if (progress == 100) { - if (!mOptionsMenuOpen || !mExtendedMenuOpen) { - suggestHideTitleBar(); - if (mUseQuickControls) { - mTitleBar.setShowProgressOnly(false); - } - } - } else { - if (!mOptionsMenuOpen || mExtendedMenuOpen) { - if (mUseQuickControls && !mTitleBar.isEditingUrl()) { - mTitleBar.setShowProgressOnly(true); - } - showTitleBar(); - } - } } if (mNavScreen == null && getTitleBar().getHeight() > 0) { mHandler.sendEmptyMessage(MSG_INIT_NAVSCREEN); diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java index bb0eec5..f7ca0d4 100644 --- a/src/com/android/browser/TitleBar.java +++ b/src/com/android/browser/TitleBar.java @@ -227,9 +227,10 @@ public class TitleBar extends RelativeLayout { mNavBar.onProgressStopped(); // check if needs to be hidden if (!isEditingUrl() && !wantsToBeVisible()) { - hide(); if (mUseQuickControls) { setShowProgressOnly(false); + } else { + mBaseUi.showTitleBarForDuration(); } } } else { |