Merge pull request #5258 from osmandapp/PaulsBranch

Open on map from saved articles fix
This commit is contained in:
PaulStets 2018-04-20 10:11:54 +03:00 committed by GitHub
commit a319b45204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ public class SavedArticlesTabFragment extends BaseOsmAndFragment implements Trav
adapter.setListener(new SavedArticlesRvAdapter.Listener() { adapter.setListener(new SavedArticlesRvAdapter.Listener() {
@Override @Override
public void openArticle(TravelArticle article) { public void openArticle(TravelArticle article) {
FragmentManager fm = getFragmentManager(); FragmentManager fm = getActivity().getSupportFragmentManager();
if (fm != null) { if (fm != null) {
WikivoyageArticleDialogFragment.showInstance(app, fm, article.getCityId(), article.getLang()); WikivoyageArticleDialogFragment.showInstance(app, fm, article.getCityId(), article.getLang());
} }