fix contrast color in menu rows for transport stop

This commit is contained in:
Chumva 2018-07-23 18:34:37 +03:00
parent 12748cb857
commit ea86f2b1d7

View file

@ -811,7 +811,9 @@ public class MenuBuilder {
GradientDrawable shape = new GradientDrawable(); GradientDrawable shape = new GradientDrawable();
shape.setShape(GradientDrawable.RECTANGLE); shape.setShape(GradientDrawable.RECTANGLE);
shape.setCornerRadius(dpToPx(3)); 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.setBackgroundDrawable(shape);
transportRect.setText(adjustRouteRef(route.route.getRef())); transportRect.setText(adjustRouteRef(route.route.getRef()));