Fixed the subway icon display bug
This commit is contained in:
parent
0fc2b0ea53
commit
a9562035be
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue