Fix check for "setLocation(null)"
This commit is contained in:
parent
ae2df017ef
commit
27b88ea389
1 changed files with 3 additions and 4 deletions
|
@ -704,11 +704,10 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gpsSignalLost = true;
|
gpsSignalLost = true;
|
||||||
if (routingHelper.isFollowingMode() && routingHelper.getLeftDistance() > 0) {
|
if (routingHelper.isFollowingMode() && routingHelper.getLeftDistance() > 0
|
||||||
|
&& simulatePosition == null) {
|
||||||
routingHelper.getVoiceRouter().gpsLocationLost();
|
routingHelper.getVoiceRouter().gpsLocationLost();
|
||||||
if (simulatePosition == null) {
|
setLocation(null);
|
||||||
setLocation(null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, LOST_LOCATION_CHECK_DELAY);
|
}, LOST_LOCATION_CHECK_DELAY);
|
||||||
|
|
Loading…
Reference in a new issue