From de7e62ac2909d0b1ccd37586aa46100218a78eed Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 19 Feb 2020 14:15:44 +0200 Subject: [PATCH] Fix base app mode key --- .../net/osmand/plus/settings/ProfileAppearanceFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/ProfileAppearanceFragment.java b/OsmAnd/src/net/osmand/plus/settings/ProfileAppearanceFragment.java index e4258f09cd..22725d0898 100644 --- a/OsmAnd/src/net/osmand/plus/settings/ProfileAppearanceFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/ProfileAppearanceFragment.java @@ -366,8 +366,8 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment { Bundle bundle = new Bundle(); fragment.setUsedOnMap(false); fragment.setAppMode(getSelectedAppMode()); - if (getSelectedAppMode() != null) { - bundle.putString(SELECTED_KEY, getSelectedAppMode().getStringKey()); + if (changedProfile.parent != null) { + bundle.putString(SELECTED_KEY, changedProfile.parent.getStringKey()); } bundle.putString(DIALOG_TYPE, TYPE_BASE_APP_PROFILE); fragment.setArguments(bundle);