From 92841cb6f9bc09e29baf8f77c6fe8dff4d4b477e Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 5 Mar 2018 12:27:20 +0200 Subject: [PATCH] now we check link for wikipedia --- .../osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 2 +- 1 file changed, 1 insertion(+), 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 c1e16537f4..564034590a 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -290,7 +290,7 @@ public class AmenityMenuBuilder extends MenuBuilder { ll.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - if (text.contains("wikipedia.org")) { + if (text.contains(".wikipedia.org/wiki/")) { WikipediaDialogFragment.showFullArticle(v.getContext(), Uri.parse(text), !light); } else { Intent intent = new Intent(Intent.ACTION_VIEW);