From 706f47891cdb2365491c5e524fbc217265b7aee2 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Fri, 27 Dec 2019 19:25:13 +0200 Subject: [PATCH] Fix manage profile on road preparation --- .../AppModesBottomSheetDialogFragment.java | 18 +++++------------- .../routepreparationmenu/MapRouteInfoMenu.java | 14 ++++++++++++-- .../settings/ConfigureProfileFragment.java | 4 ++++ .../settings/ProfileAppearanceFragment.java | 2 +- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java index 3952016a87..6084e0f185 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java @@ -1,7 +1,6 @@ package net.osmand.plus.profiles; import android.content.DialogInterface; -import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; @@ -9,14 +8,11 @@ import android.view.ContextThemeWrapper; import android.view.View; import net.osmand.plus.ApplicationMode; -import net.osmand.plus.OsmandApplication; import net.osmand.plus.R; import net.osmand.plus.base.MenuBottomSheetDialogFragment; import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem; import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem; - -import static net.osmand.plus.profiles.SettingsProfileFragment.IS_USER_PROFILE; -import static net.osmand.plus.profiles.SettingsProfileFragment.PROFILE_STRING_KEY; +import net.osmand.plus.settings.BaseSettingsFragment; public abstract class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFragment implements AbstractProfileMenuAdapter.ButtonPressedListener, AbstractProfileMenuAdapter.ProfilePressedListener { @@ -79,17 +75,13 @@ public abstract class AppModesBottomSheetDialogFragment