diff options
-rw-r--r-- | src/com/android/browser/UrlBarAutoShowManager.java | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/com/android/browser/UrlBarAutoShowManager.java b/src/com/android/browser/UrlBarAutoShowManager.java index 294115e..9f7827b 100644 --- a/src/com/android/browser/UrlBarAutoShowManager.java +++ b/src/com/android/browser/UrlBarAutoShowManager.java @@ -71,19 +71,17 @@ public class UrlBarAutoShowManager implements OnTouchListener, @Override public void onScrollChanged(int l, int t, int oldl, int oldt) { mLastScrollTime = SystemClock.uptimeMillis(); - if (t != oldt) { - mIsScrolling = true; - if (t != 0) { - // If it is showing, extend it - if (mUi.isTitleBarShowing()) { - long remaining = mLastScrollTime - mTriggeredTime; - remaining = Math.max(BaseUi.HIDE_TITLEBAR_DELAY - remaining, - SCROLL_TIMEOUT_DURATION); - mUi.showTitleBarForDuration(remaining); - } - } else { - mUi.suggestHideTitleBar(); + mIsScrolling = true; + if (t != 0) { + // If it is showing, extend it + if (mUi.isTitleBarShowing()) { + long remaining = mLastScrollTime - mTriggeredTime; + remaining = Math.max(BaseUi.HIDE_TITLEBAR_DELAY - remaining, + SCROLL_TIMEOUT_DURATION); + mUi.showTitleBarForDuration(remaining); } + } else { + mUi.suggestHideTitleBar(); } } |