From c1287e455e8340b1aaec31a840c7ac634691b181 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Thu, 1 Mar 2018 15:03:20 +0200 Subject: [PATCH] Removed unnecessary conditions --- .../mapcontextmenu/controllers/AmenityMenuController.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java index 6837179d63..7d8e4541f6 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java @@ -193,14 +193,10 @@ public class AmenityMenuController extends MenuController { Map addTypes = amenity.getAdditionalInfo(); if (addTypes != null) { String region = addTypes.get("subway_region"); - if (region == null) { - return null; - } else { + if (region != null) { region = "subway_" + region; } - if (RenderingIcons.containsBigIcon(region)) { - return RenderingIcons.getBigIcon(getMapActivity(), region); - } + return RenderingIcons.getBigIcon(getMapActivity(), region); } return null; }