Small refactoring

This commit is contained in:
PaulStets 2018-03-03 18:32:51 +02:00
parent 79bb6eb0ed
commit 3a494cad5c

View file

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