Fix route simulation in background
This commit is contained in:
parent
7586ac2c48
commit
1bce068d12
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) {
|
||||
if (locationSimulation.isRouteAnimating()) {
|
||||
return;
|
||||
}
|
||||
// if continuous notify about lost location
|
||||
if (continuous) {
|
||||
scheduleCheckIfGpsLost(location);
|
||||
|
|
Loading…
Reference in a new issue