diff options
author | Michael Kolb <kolby@google.com> | 2011-02-18 15:47:21 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-02-18 15:53:43 -0800 |
commit | 5ee018e25ecda8955f865cbf7b0b946bcad2b294 (patch) | |
tree | 94d4c41440b4d073e649459e222fd0b5aec8e929 /src/com/android/browser/TabBar.java | |
parent | d695037e94f7d231535f2e4c9e7f0ba332af0f2f (diff) | |
download | android_packages_apps_Gello-5ee018e25ecda8955f865cbf7b0b946bcad2b294.tar.gz android_packages_apps_Gello-5ee018e25ecda8955f865cbf7b0b946bcad2b294.tar.bz2 android_packages_apps_Gello-5ee018e25ecda8955f865cbf7b0b946bcad2b294.zip |
don't scroll title bar while editing
Bug: 3405814
Check if scroll is user initiated and if user is editing url
before hiding titlebar when scrolling
Change-Id: Icc32ef1cc83018021ebe12402aec016c9555e3a9
Diffstat (limited to 'src/com/android/browser/TabBar.java')
-rw-r--r-- | src/com/android/browser/TabBar.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java index 4fb3ad4a..9da19270 100644 --- a/src/com/android/browser/TabBar.java +++ b/src/com/android/browser/TabBar.java @@ -262,13 +262,14 @@ public class TabBar extends LinearLayout // webview scroll listener @Override - public void onScroll(int visibleTitleHeight) { + public void onScroll(int visibleTitleHeight, boolean userInitiated) { if (mUseQuickControls) return; // isLoading is using the current tab, which initially might not be set yet if (mTabControl.getCurrentTab() != null && !isLoading()) { if (visibleTitleHeight == 0) { - if (!showsTitleBarIndicator()) { + if (!showsTitleBarIndicator() + && (!mUi.isEditingUrl() || userInitiated)) { mUi.hideTitleBar(); showTitleBarIndicator(true); } @@ -606,7 +607,7 @@ public class TabBar extends LinearLayout WebView webview = tab.getWebView(); if (webview != null) { int h = webview.getVisibleTitleHeight(); - onScroll(h); + onScroll(h, true); } } } |