From 3d156cc0332464664ce44f4a1ce2b7f8a23b7db3 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 20 Mar 2019 17:08:22 +0200 Subject: [PATCH] Add check for app mode change --- .../osmand/plus/routepreparationmenu/MapRouteInfoMenu.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java index 0326dbf9de..1f846e68ae 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java @@ -705,7 +705,9 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener routingHelper.setAppMode(next); app.initVoiceCommandPlayer(mapActivity, next, true, null, false, false); routingHelper.recalculateRouteDueToSettingsChange(); - updateMenu(); + if (setRouteCalculationInProgress(true) || mode != next) { + updateMenu(); + } } }