diff options
author | John Reck <jreck@google.com> | 2010-12-22 16:32:31 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-12-22 16:32:31 -0800 |
commit | dcf911c7cb1c3eeb8b073d69c2ccd96e6179b4a8 (patch) | |
tree | 73b10fa8ab7215f955381b6ce9824c2e531896cc /src/com/android/browser/TabBar.java | |
parent | 246ee01c0c146962e9050ad2b30fc7729acd9acc (diff) | |
download | packages_apps_browser-dcf911c7cb1c3eeb8b073d69c2ccd96e6179b4a8.zip packages_apps_browser-dcf911c7cb1c3eeb8b073d69c2ccd96e6179b4a8.tar.gz packages_apps_browser-dcf911c7cb1c3eeb8b073d69c2ccd96e6179b4a8.tar.bz2 |
Hide fake title bar on scroll
Bug: 3293529
Hide the fake title bar when the page is scrolled, even if the user
opened it with the affordance
Change-Id: Id2606b0b5bb564e5e0e88557da4509b620c3f12c
Diffstat (limited to 'src/com/android/browser/TabBar.java')
-rw-r--r-- | src/com/android/browser/TabBar.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java index 88209fe..32e19a1 100644 --- a/src/com/android/browser/TabBar.java +++ b/src/com/android/browser/TabBar.java @@ -238,16 +238,12 @@ public class TabBar extends LinearLayout public void onScroll(int visibleTitleHeight) { if (mUseQuickControls) return; // isLoading is using the current tab, which initially might not be set yet - if (mTabControl.getCurrentTab() != null) { - if ((mVisibleTitleHeight != 0) && (visibleTitleHeight == 0) - && !isLoading()) { - if (mUserRequestedUrlbar) { - mUi.hideFakeTitleBar(); - } else { - showTitleBarIndicator(true); - } - } else if ((mVisibleTitleHeight == 0) && (visibleTitleHeight != 0) - && !isLoading()) { + if (mTabControl.getCurrentTab() != null + && !isLoading()) { + if (visibleTitleHeight == 0) { + mUi.hideFakeTitleBar(); + showTitleBarIndicator(true); + } else { showTitleBarIndicator(false); } } |