diff --git a/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java b/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java index 10af54f966..1427dca878 100644 --- a/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java @@ -47,6 +47,7 @@ public class HelpActivity extends OsmandActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { + ((OsmandApplication) getApplication()).applyTheme(this); super.onCreate(savedInstanceState); FrameLayout frame = new FrameLayout(this); frame.setId(DIALOG); @@ -81,9 +82,6 @@ public class HelpActivity extends OsmandActionBarActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - boolean isLightTheme = (getOsmandApplication()) - .getSettings().OSMAND_THEME.get() == OsmandSettings.OSMAND_LIGHT_THEME; - int themeId = isLightTheme ? R.style.OsmandLightTheme : R.style.OsmandDarkTheme; } @NonNull @@ -335,7 +333,7 @@ public class HelpActivity extends OsmandActionBarActivity { @Override public void onClick(View v) { HelpArticleDialogFragment.instantiateWithAsset(filename, name) - .show(ctx.getSupportFragmentManager(), null); + .show(ctx.getSupportFragmentManager(), "DIALOG_HELP_ARTICLE"); } } diff --git a/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java index f2b1cbbc04..395aa8103b 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java @@ -38,6 +38,7 @@ public class HelpArticleDialogFragment extends DialogFragment { @Override public void onCreate(Bundle savedInstanceState) { + setRetainInstance(true); super.onCreate(savedInstanceState); boolean isLightTheme = (getOsmandApplication()) .getSettings().OSMAND_THEME.get() == OsmandSettings.OSMAND_LIGHT_THEME;