Fixed the subway icon display bug

This commit is contained in:
PaulStets 2018-03-01 14:21:20 +02:00
parent 0fc2b0ea53
commit a9562035be
2 changed files with 2 additions and 2 deletions

View file

@ -334,7 +334,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
String key = e.getKey();
String vl = e.getValue();
if (key.equals("image") || key.equals("mapillary")) {
if (key.equals("image") || key.equals("mapillary") || key.equals("subway_region")) {
continue;
}

View file

@ -192,7 +192,7 @@ public class AmenityMenuController extends MenuController {
public Drawable getRightIcon() {
Map<String, String> addTypes = amenity.getAdditionalInfo();
if (addTypes != null && addTypes.containsKey("subway_region")) {
String region = "subway_" + addTypes.remove("subway_region");
String region = "subway_" + addTypes.get("subway_region");
amenity.setAdditionalInfo(addTypes);
if (RenderingIcons.containsBigIcon(region)) {
return RenderingIcons.getBigIcon(getMapActivity(), region);