Future optimization for the subway icon
This commit is contained in:
parent
efade3626b
commit
1b43a910f3
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue