now we check link for wikipedia

This commit is contained in:
Chumva 2018-03-05 12:08:49 +02:00
parent b2254b6ce4
commit da60b8ef7d

View file

@ -290,7 +290,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
ll.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (textPrefix.equals("Wikipedia")) {
if (text.contains("wikipedia.org")) {
WikipediaDialogFragment.showFullArticle(v.getContext(), Uri.parse(text), !light);
} else {
Intent intent = new Intent(Intent.ACTION_VIEW);