summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-09-12 11:56:18 -0700
committerJohn Reck <jreck@google.com>2011-09-12 11:56:18 -0700
commitbb3a4f2a57b137a62f2cc2dc8acf51a17e62dd74 (patch)
treea3be52ba5329f8e006898fb47a16dcd173bf1946 /src
parentf5e106165dc27561fc0bb64bcc19a855ee757899 (diff)
downloadpackages_apps_Browser-bb3a4f2a57b137a62f2cc2dc8acf51a17e62dd74.zip
packages_apps_Browser-bb3a4f2a57b137a62f2cc2dc8acf51a17e62dd74.tar.gz
packages_apps_Browser-bb3a4f2a57b137a62f2cc2dc8acf51a17e62dd74.tar.bz2
Use uptimeMillis instead of currentTimeMillis
Bug: 5291191 Change-Id: I70b54d9f7c0ab974bf8a361b77d79a40e8d32f78
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/UrlBarAutoShowManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/browser/UrlBarAutoShowManager.java b/src/com/android/browser/UrlBarAutoShowManager.java
index 0db31ff..b491e0b 100644
--- a/src/com/android/browser/UrlBarAutoShowManager.java
+++ b/src/com/android/browser/UrlBarAutoShowManager.java
@@ -15,6 +15,7 @@
*/
package com.android.browser;
+import android.os.SystemClock;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
@@ -68,7 +69,7 @@ public class UrlBarAutoShowManager implements OnTouchListener,
@Override
public void onScrollChanged(int l, int t, int oldl, int oldt) {
- mLastScrollTime = System.currentTimeMillis();
+ mLastScrollTime = SystemClock.uptimeMillis();
if (t != oldt) {
if (t != 0) {
// If it is showing, extend it
@@ -124,7 +125,7 @@ public class UrlBarAutoShowManager implements OnTouchListener,
if (dy > mSlop && angle > V_TRIGGER_ANGLE
&& !mUi.isTitleBarShowing()
&& web.getVisibleTitleHeight() == 0) {
- mTriggeredTime = System.currentTimeMillis();
+ mTriggeredTime = SystemClock.uptimeMillis();
mUi.showTitleBar();
}
}