Try more global fix for Issue 2136(b-d)
This commit is contained in:
parent
a69ba7784f
commit
f75a8a0a4e
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,7 @@ import net.osmand.data.LocationPoint;
|
||||||
import net.osmand.data.PointDescription;
|
import net.osmand.data.PointDescription;
|
||||||
import net.osmand.plus.routing.RouteProvider.RouteService;
|
import net.osmand.plus.routing.RouteProvider.RouteService;
|
||||||
import net.osmand.plus.routing.RoutingHelper;
|
import net.osmand.plus.routing.RoutingHelper;
|
||||||
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.util.MapUtils;
|
import net.osmand.util.MapUtils;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
@ -226,6 +227,11 @@ public class TargetPointsHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateRouteAndReferesh(boolean updateRoute) {
|
public void updateRouteAndReferesh(boolean updateRoute) {
|
||||||
|
//Issue 2136
|
||||||
|
if (pointToNavigate == null) {
|
||||||
|
mapActivity.getMapActions().stopNavigationWithoutConfirm();
|
||||||
|
}
|
||||||
|
|
||||||
if(updateRoute && ( routingHelper.isRouteBeingCalculated() || routingHelper.isRouteCalculated() ||
|
if(updateRoute && ( routingHelper.isRouteBeingCalculated() || routingHelper.isRouteCalculated() ||
|
||||||
routingHelper.isFollowingMode() || routingHelper.isRoutePlanningMode())) {
|
routingHelper.isFollowingMode() || routingHelper.isRoutePlanningMode())) {
|
||||||
updateRoutingHelper();
|
updateRoutingHelper();
|
||||||
|
|
Loading…
Reference in a new issue