Removed unnecessary conditions
This commit is contained in:
parent
79e2f1ddee
commit
c1287e455e
1 changed files with 2 additions and 6 deletions
|
@ -193,14 +193,10 @@ 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");
|
||||||
if (region == null) {
|
if (region != null) {
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
region = "subway_" + region;
|
region = "subway_" + region;
|
||||||
}
|
}
|
||||||
if (RenderingIcons.containsBigIcon(region)) {
|
return RenderingIcons.getBigIcon(getMapActivity(), region);
|
||||||
return RenderingIcons.getBigIcon(getMapActivity(), region);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue