Fix night mode in wikipedia

This commit is contained in:
PavelRatushny 2017-12-27 17:25:10 +02:00
parent 12add8674c
commit 10c7fe2809

View file

@ -63,7 +63,7 @@ public class WikipediaDialogFragment extends DialogFragment {
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
OsmandApplication app = getMyApplication();
darkMode = app.getDaynightHelper().isNightMode();
darkMode = app.getDaynightHelper().isNightMode() || !app.getSettings().isLightContent();
int themeId = darkMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
setStyle(STYLE_NO_FRAME, themeId);
}