Bug 828563 - Part 2: Use Location.getTime() instead of getElapsedRealtimeNanos(). a=bustage CLOSED TREE

--HG--
extra : amend_source : 85ba5aa824bed8f15b98537672eee1cccba44416
This commit is contained in:
Chris Peterson 2013-05-08 15:21:57 -07:00
parent 6cc2227836
commit 7c1561533a

View File

@ -413,9 +413,7 @@ public class GeckoAppShell
continue;
}
long timeDiff = location.getElapsedRealtimeNanos()
- lastKnownLocation.getElapsedRealtimeNanos();
long timeDiff = location.getTime() - lastKnownLocation.getTime();
if (timeDiff > 0 ||
(timeDiff == 0 &&
getLocationAccuracy(location) < getLocationAccuracy(lastKnownLocation))) {