[yopme] Fixed nano -> milli.

This commit is contained in:
vng 2013-09-19 12:59:12 +03:00 committed by Alex Zolotarev
parent cfbef673dd
commit eb52ab1689

View file

@ -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;