Future optimization for the subway icon

This commit is contained in:
PaulStets 2018-03-01 14:55:13 +02:00
parent efade3626b
commit 1b43a910f3

View file

@ -191,8 +191,9 @@ public class AmenityMenuController extends MenuController {
@Override
public Drawable getRightIcon() {
Map<String, String> addTypes = amenity.getAdditionalInfo();
if (addTypes != null && addTypes.containsKey("subway_region")) {
String region = "subway_" + addTypes.get("subway_region");
if (addTypes != null) {
String region = addTypes.get("subway_region");
region = region == null ? "" : "subway_" + region;
if (RenderingIcons.containsBigIcon(region)) {
return RenderingIcons.getBigIcon(getMapActivity(), region);
}