Fix night mode in wikipedia
This commit is contained in:
parent
12add8674c
commit
10c7fe2809
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ public class WikipediaDialogFragment extends DialogFragment {
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
OsmandApplication app = getMyApplication();
|
OsmandApplication app = getMyApplication();
|
||||||
darkMode = app.getDaynightHelper().isNightMode();
|
darkMode = app.getDaynightHelper().isNightMode() || !app.getSettings().isLightContent();
|
||||||
int themeId = darkMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
|
int themeId = darkMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
|
||||||
setStyle(STYLE_NO_FRAME, themeId);
|
setStyle(STYLE_NO_FRAME, themeId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue