Small refactoring
This commit is contained in:
parent
71a549b30c
commit
700e7b5cc5
1 changed files with 3 additions and 2 deletions
|
@ -59,8 +59,9 @@ public class TransportStopRoute {
|
||||||
RenderingRulesStorage rrs = ctx.getRendererRegistry().getCurrentSelectedRenderer();
|
RenderingRulesStorage rrs = ctx.getRendererRegistry().getCurrentSelectedRenderer();
|
||||||
RenderingRuleSearchRequest req = new RenderingRuleSearchRequest(rrs);
|
RenderingRuleSearchRequest req = new RenderingRuleSearchRequest(rrs);
|
||||||
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, nightMode);
|
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, nightMode);
|
||||||
String typeStr = route.getColor() == null || route.getColor().isEmpty() ?
|
String color = route.getColor();
|
||||||
type.getRendeAttr() : route.getColor();
|
String typeStr = color == null || color.isEmpty() ?
|
||||||
|
type.getRendeAttr() : color;
|
||||||
if (req.searchRenderingAttribute(typeStr)) {
|
if (req.searchRenderingAttribute(typeStr)) {
|
||||||
cachedColor = req.getIntPropertyValue(rrs.PROPS.R_ATTR_COLOR_VALUE);
|
cachedColor = req.getIntPropertyValue(rrs.PROPS.R_ATTR_COLOR_VALUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue