From cebb6001d41dbafadca255ae4340bd77e1235de4 Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 14 May 2018 14:44:47 +0300 Subject: [PATCH] Fix #5391 --- .../plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index c092c253fc..5ae23dd617 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -100,7 +100,12 @@ public class AmenityMenuBuilder extends MenuBuilder { ll.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { - String textToCopy = !Algorithms.isEmpty(textPrefix) ? textPrefix + ": " + txt : txt; + String textToCopy; + if (txt.contains(".wikipedia.org/w")) { + textToCopy = txt; + } else { + textToCopy = !Algorithms.isEmpty(textPrefix) ? textPrefix + ": " + txt : txt; + } copyToClipboard(textToCopy, view.getContext()); return true; }