changed check for wikipedia link

This commit is contained in:
Chumva 2018-03-05 13:08:02 +02:00
parent 92841cb6f9
commit 49f9690799

View file

@ -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/wiki/")) {
if (text.contains(".wikipedia.org/w")) {
WikipediaDialogFragment.showFullArticle(v.getContext(), Uri.parse(text), !light);
} else {
Intent intent = new Intent(Intent.ACTION_VIEW);