add check for show dialog images setting

This commit is contained in:
Chumva 2018-05-01 14:53:38 +03:00
parent 012d19e79f
commit 930d8c51e3

View file

@ -263,7 +263,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
public void onResume() {
super.onResume();
OsmandSettings settings = getMyApplication().getSettings();
// if (!settings.WIKIVOYAGE_SHOW_IMAGES_ASKED.get()) {
if (!settings.WIKIVOYAGE_SHOW_IMAGES_ASKED.get()) {
FragmentActivity activity = getActivity();
FragmentManager fm = getFragmentManager();
if (activity != null && fm != null) {
@ -272,7 +272,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
fragment.show(fm, WikivoyageShowPicturesDialogFragment.TAG);
settings.WIKIVOYAGE_SHOW_IMAGES_ASKED.set(true);
}
// }
}
}
@Override