add update menu for avoid types

This commit is contained in:
Chumva 2018-11-29 10:45:13 +02:00
parent 3197d7029a
commit 85e417fb2c

View file

@ -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();
}