Merge pull request #5386 from osmandapp/WikipediaInContextMenu

Opening url in context menu
This commit is contained in:
Alexander Sytnyk 2018-05-11 15:59:30 +03:00 committed by GitHub
commit cdf5492445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -301,7 +301,9 @@ public class AmenityMenuBuilder extends MenuBuilder {
WikipediaArticleWikiLinkFragment.showInstance(mapActivity.getSupportFragmentManager(), text);
}
} else {
WikipediaDialogFragment.showInstance(mapActivity, amenity, text);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(text));
v.getContext().startActivity(intent);
}
}
});