diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index f6d2bdf90a..3a0477e631 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -541,6 +541,10 @@ @dimen/default_desc_text_size + + diff --git a/OsmAnd/src/net/osmand/AndroidUtils.java b/OsmAnd/src/net/osmand/AndroidUtils.java index 09d30b6cea..e391c33b02 100644 --- a/OsmAnd/src/net/osmand/AndroidUtils.java +++ b/OsmAnd/src/net/osmand/AndroidUtils.java @@ -270,14 +270,6 @@ public class AndroidUtils { } } - public static void setLightStatusBarFlag(View view) { - if (Build.VERSION.SDK_INT >= 23) { - int flags = view.getSystemUiVisibility(); - flags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR; - view.setSystemUiVisibility(flags); - } - } - public static int getNavBarHeight(Context ctx) { if (!hasNavBar(ctx)) { return 0; diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java index 738fab8b93..5eff13de75 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java @@ -40,16 +40,14 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen @NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) { - Dialog dialog = super.onCreateDialog(savedInstanceState); + int themeId = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme_LightStatusBar; + Dialog dialog = new Dialog(getContext(), themeId); if (Build.VERSION.SDK_INT >= 21) { Window window = dialog.getWindow(); if (window != null) { window.setStatusBarColor(getResolvedColor(nightMode ? R.color.status_bar_wikivoyage_dark : R.color.status_bar_wikivoyage_light)); - if (!nightMode) { - AndroidUtils.setLightStatusBarFlag(window.getDecorView()); - } } } return dialog;