fix contrast color in menu rows for transport stop
This commit is contained in:
parent
12748cb857
commit
ea86f2b1d7
1 changed files with 3 additions and 1 deletions
|
@ -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()));
|
||||||
|
|
Loading…
Reference in a new issue