Fix route simulation in background
This commit is contained in:
parent
e11ee96e6a
commit
e04a63987c
1 changed files with 3 additions and 0 deletions
|
@ -761,6 +761,9 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
|
|
||||||
|
|
||||||
public void setLocationFromService(net.osmand.Location location, boolean continuous) {
|
public void setLocationFromService(net.osmand.Location location, boolean continuous) {
|
||||||
|
if (locationSimulation.isRouteAnimating()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// if continuous notify about lost location
|
// if continuous notify about lost location
|
||||||
if (continuous) {
|
if (continuous) {
|
||||||
scheduleCheckIfGpsLost(location);
|
scheduleCheckIfGpsLost(location);
|
||||||
|
|
Loading…
Reference in a new issue