now we check link for wikipedia

This commit is contained in:
Chumva 2018-03-05 12:27:20 +02:00
parent da60b8ef7d
commit 92841cb6f9

View file

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