From 10c7fe2809e36cc9dde4028ce9d09868e36f405e Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 27 Dec 2017 17:25:10 +0200 Subject: [PATCH] Fix night mode in wikipedia --- .../net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java index 49c4cacc58..6480054f13 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java @@ -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); }