Future optimization for the subway icon

This commit is contained in:
PaulStets 2018-03-01 14:58:54 +02:00
parent 1b43a910f3
commit 79e2f1ddee

View file

@ -193,7 +193,11 @@ public class AmenityMenuController extends MenuController {
Map<String, String> addTypes = amenity.getAdditionalInfo(); Map<String, String> addTypes = amenity.getAdditionalInfo();
if (addTypes != null) { if (addTypes != null) {
String region = addTypes.get("subway_region"); String region = addTypes.get("subway_region");
region = region == null ? "" : "subway_" + region; if (region == null) {
return null;
} else {
region = "subway_" + region;
}
if (RenderingIcons.containsBigIcon(region)) { if (RenderingIcons.containsBigIcon(region)) {
return RenderingIcons.getBigIcon(getMapActivity(), region); return RenderingIcons.getBigIcon(getMapActivity(), region);
} }