зеркало из https://github.com/mozilla/gecko-dev.git
Bug 828563 - Part 2: Use Location.getTime() instead of getElapsedRealtimeNanos(). a=bustage CLOSED TREE
--HG-- extra : amend_source : 85ba5aa824bed8f15b98537672eee1cccba44416
This commit is contained in:
Родитель
1bb5a25075
Коммит
5cc4f5e01e
|
@ -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))) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче