Add check for "setLocation(null)"
This commit is contained in:
parent
b05547e9f9
commit
de25575fa5
1 changed files with 3 additions and 1 deletions
|
@ -699,9 +699,11 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
gpsSignalLost = true;
|
gpsSignalLost = true;
|
||||||
if (routingHelper.isFollowingMode() && routingHelper.getLeftDistance() > 0) {
|
if (routingHelper.isFollowingMode() && routingHelper.getLeftDistance() > 0) {
|
||||||
routingHelper.getVoiceRouter().gpsLocationLost();
|
routingHelper.getVoiceRouter().gpsLocationLost();
|
||||||
}
|
if (simulatePosition == null) {
|
||||||
setLocation(null);
|
setLocation(null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}, LOST_LOCATION_CHECK_DELAY);
|
}, LOST_LOCATION_CHECK_DELAY);
|
||||||
app.runMessageInUIThreadAndCancelPrevious(START_SIMULATE_LOCATION_MSG_ID, new Runnable() {
|
app.runMessageInUIThreadAndCancelPrevious(START_SIMULATE_LOCATION_MSG_ID, new Runnable() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue