From 85e417fb2cecd2f9592f43d78f905986a643d08f Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 29 Nov 2018 10:45:13 +0200 Subject: [PATCH] add update menu for avoid types --- .../AvoidRoadsBottomSheetDialogFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/AvoidRoadsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/AvoidRoadsBottomSheetDialogFragment.java index e3bd6533f8..0292439913 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/AvoidRoadsBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/AvoidRoadsBottomSheetDialogFragment.java @@ -278,6 +278,14 @@ public class AvoidRoadsBottomSheetDialogFragment extends MenuBottomSheetDialogFr routingHelper.recalculateRouteDueToSettingsChange(); } + MapActivity mapActivity = getMapActivity(); + if (mapActivity != null) { + final MapRouteInfoMenu mapRouteInfoMenu = mapActivity.getMapLayers().getMapControlsLayer().getMapRouteInfoMenu(); + if (mapRouteInfoMenu != null) { + mapRouteInfoMenu.updateMenu(); + } + } + dismiss(); }