Fix typo
This commit is contained in:
parent
e76ea77a5b
commit
b5f5cb3cfe
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
if (loc != null) {
|
if (loc != null) {
|
||||||
int counter = locationRequestsCounter.incrementAndGet();
|
int counter = locationRequestsCounter.incrementAndGet();
|
||||||
if (counter >= REQUESTS_BEFORE_CHECK_LOCATION && locationRequestsCounter.compareAndSet(counter, 0)) {
|
if (counter >= REQUESTS_BEFORE_CHECK_LOCATION && locationRequestsCounter.compareAndSet(counter, 0)) {
|
||||||
if (System.currentTimeMillis() - lastTimeGPSLocationFixed > LOCATION_TIMEOUT_TO_BE_STALE) {
|
if (System.currentTimeMillis() - lastTimeLocationFixed > LOCATION_TIMEOUT_TO_BE_STALE) {
|
||||||
location = null;
|
location = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue