From 972d01d2e07278b8772a88af7113c6b38ea385b7 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 26 Oct 2020 13:28:13 +0200 Subject: [PATCH 1/2] Fix selected profile for settings screen --- .../osmand/plus/settings/fragments/BaseSettingsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java index db12e7d781..3763987e38 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java @@ -899,7 +899,7 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl } public static boolean showInstance(FragmentActivity activity, SettingsScreenType screenType, @Nullable ApplicationMode appMode) { - return showInstance(activity, screenType, null, new Bundle()); + return showInstance(activity, screenType, appMode, new Bundle()); } public static boolean showInstance(FragmentActivity activity, SettingsScreenType screenType, From 17c2502805c829864bcf656f92e396af75a8ad07 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 26 Oct 2020 14:29:15 +0200 Subject: [PATCH 2/2] Fix EditProfilesFragment --- OsmAnd/res/xml/settings_main_screen.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/res/xml/settings_main_screen.xml b/OsmAnd/res/xml/settings_main_screen.xml index 888a082ec2..e2a2a5be80 100644 --- a/OsmAnd/res/xml/settings_main_screen.xml +++ b/OsmAnd/res/xml/settings_main_screen.xml @@ -58,7 +58,7 @@ android:layout="@layout/preference_button" android:persistent="false" android:title="@string/reorder_profiles" - app:fragment="net.osmand.plus.profiles.fragments.EditProfilesFragment" + app:fragment="net.osmand.plus.profiles.EditProfilesFragment" tools:icon="@drawable/ic_action_edit_dark" />