From 8676032a0042e268c9a1c88092380ae88db823c4 Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 16 Apr 2018 12:41:47 +0300 Subject: [PATCH] add check for ref in title --- .../plus/mapcontextmenu/controllers/AmenityMenuController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java index aa7afe3395..ae4474d3a0 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/AmenityMenuController.java @@ -143,7 +143,7 @@ public class AmenityMenuController extends MenuController { Map additionalInfo = amenity.getAdditionalInfo(); if (additionalInfo != null) { String ref = additionalInfo.get("ref"); - if (!TextUtils.isEmpty(ref)) { + if (!TextUtils.isEmpty(ref) && !ref.equals(name)) { return name + " (" + ref + ")"; } }