From abe2cf0d85fd6f1a9b8c5efb3ca7595cb225cf3f Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 20 May 2020 17:25:02 +0300 Subject: [PATCH] Fix #9010 --- .../plus/quickaction/actions/SwitchProfileAction.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/SwitchProfileAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/SwitchProfileAction.java index 4405d65027..dd1601fd74 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/SwitchProfileAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/SwitchProfileAction.java @@ -10,9 +10,7 @@ import androidx.appcompat.widget.SwitchCompat; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; -import net.osmand.plus.settings.backend.ApplicationMode; import net.osmand.plus.OsmandApplication; -import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.profiles.SelectMultipleProfilesBottomSheet; @@ -20,7 +18,8 @@ import net.osmand.plus.quickaction.CreateEditActionDialog; import net.osmand.plus.quickaction.QuickAction; import net.osmand.plus.quickaction.QuickActionType; import net.osmand.plus.quickaction.SwitchableAction; -import net.osmand.plus.views.MapQuickActionLayer; +import net.osmand.plus.settings.backend.ApplicationMode; +import net.osmand.plus.settings.backend.OsmandSettings; import java.lang.reflect.Type; import java.util.ArrayList; @@ -132,11 +131,6 @@ public class SwitchProfileAction extends SwitchableAction { app.getQuickActionRegistry().setQuickActionFabState(true); - MapQuickActionLayer mil = activity.getMapLayers().getMapQuickActionLayer(); - if (mil != null) { - mil.refreshLayer(); - } - String message = String.format(activity.getString( R.string.application_profile_changed), appMode.toHumanString()); Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();