Remove unnecessary check for default color

This commit is contained in:
Chumva 2019-07-20 13:41:13 +03:00
parent 2b69d0908c
commit 58e02f14e6

View file

@ -1434,7 +1434,6 @@ public class ConfigureMapMenu {
}
public static String parseTrackColorName(RenderingRulesStorage renderer, int color) {
int defaultColor = -1;
RenderingRule gpxRule = null;
if (renderer != null) {
gpxRule = renderer.getRenderingAttributeRule("gpx");
@ -1446,9 +1445,6 @@ public class ConfigureMapMenu {
if (!Algorithms.isEmpty(cName) && color == r.getIntPropertyValue(COLOR_ATTR)) {
return cName;
}
if (cName == null && defaultColor == -1) {
defaultColor = r.getIntPropertyValue(COLOR_ATTR);
}
}
}
return Algorithms.colorToString(color);