diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 70e4a6fc9a..182e345381 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -811,7 +811,9 @@ public class MenuBuilder { GradientDrawable shape = new GradientDrawable(); shape.setShape(GradientDrawable.RECTANGLE); shape.setCornerRadius(dpToPx(3)); - shape.setColor(route.getColor(mapActivity.getMyApplication(), !light)); + int bgColor = route.getColor(app, !light); + shape.setColor(bgColor); + transportRect.setTextColor(UiUtilities.getContrastColor(app, bgColor, true)); transportRect.setBackgroundDrawable(shape); transportRect.setText(adjustRouteRef(route.route.getRef()));