mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 828563 - Part 2: Use Location.getTime() instead of getElapsedRealtimeNanos(). a=bustage CLOSED TREE
--HG-- extra : amend_source : 85ba5aa824bed8f15b98537672eee1cccba44416
This commit is contained in:
parent
6cc2227836
commit
7c1561533a
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user