From 4b5cf87d3461b70d1336057258bdb0b3b9b4b3a7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 3 Aug 2013 23:44:51 +0200 Subject: [PATCH] Fix small issue --- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index f152982177..561fa898e6 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -1309,6 +1309,9 @@ public class MapActivityActions implements DialogProvider { builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + if(getMyApplication().getLocationProvider().getLocationSimulation().isRouteAnimating()) { + getMyApplication().getLocationProvider().getLocationSimulation().startStopRouteAnimation(mapActivity); + } routingHelper.setFinalAndCurrentLocation(null, new ArrayList(), getLastKnownLocation(), routingHelper.getCurrentGPXRoute()); settings.APPLICATION_MODE.set(settings.DEFAULT_APPLICATION_MODE.get());