diff options
author | vng <viktor.govako@gmail.com> | 2013-09-19 13:59:12 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:02:10 +0300 |
commit | eb52ab16893b95e4af4b021eada38045947bf7ca (patch) | |
tree | 9f810f81f17e9e130fbc58aa48b9e4707ae151db | |
parent | cfbef673ddd2b39ea2aed83b2ad76dd2a43321b2 (diff) |
[yopme] Fixed nano -> milli.
-rw-r--r-- | android/YoPme/src/com/mapswithme/location/LocationRequester.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/YoPme/src/com/mapswithme/location/LocationRequester.java b/android/YoPme/src/com/mapswithme/location/LocationRequester.java index 65a2a2d3e3..f1ab0dda27 100644 --- a/android/YoPme/src/com/mapswithme/location/LocationRequester.java +++ b/android/YoPme/src/com/mapswithme/location/LocationRequester.java @@ -54,7 +54,7 @@ public class LocationRequester implements Handler.Callback // Check whether the new location fix is newer or older long timeDelta = firstLoc.getElapsedRealtimeNanos() - secondLoc.getElapsedRealtimeNanos(); - timeDelta /= 1000; + timeDelta /= 1000000; final boolean isSignificantlyNewer = timeDelta > TWO_MINUTES; final boolean isSignificantlyOlder = timeDelta < -TWO_MINUTES; final boolean isNewer = timeDelta > 0; |