Small refactoring

This commit is contained in:
PaulStets 2018-03-03 18:30:45 +02:00
parent 71a549b30c
commit 700e7b5cc5

View file

@ -59,8 +59,9 @@ public class TransportStopRoute {
RenderingRulesStorage rrs = ctx.getRendererRegistry().getCurrentSelectedRenderer();
RenderingRuleSearchRequest req = new RenderingRuleSearchRequest(rrs);
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, nightMode);
String typeStr = route.getColor() == null || route.getColor().isEmpty() ?
type.getRendeAttr() : route.getColor();
String color = route.getColor();
String typeStr = color == null || color.isEmpty() ?
type.getRendeAttr() : color;
if (req.searchRenderingAttribute(typeStr)) {
cachedColor = req.getIntPropertyValue(rrs.PROPS.R_ATTR_COLOR_VALUE);
}