From e32f08e44c8ad928b34da86deb5e61c63bd902d0 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 19 May 2020 14:56:13 +0300 Subject: [PATCH] Remove poi filters loading from settings --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 3 ++- .../net/osmand/plus/settings/backend/OsmandSettings.java | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 8a65f81d7a..2ed292151a 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -77,7 +77,6 @@ import net.osmand.plus.OsmAndConstants; import net.osmand.plus.OsmAndLocationSimulation; import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; -import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.TargetPointsHelper; import net.osmand.plus.TargetPointsHelper.TargetPoint; @@ -135,6 +134,7 @@ import net.osmand.plus.routing.TransportRoutingHelper.TransportRouteCalculationP import net.osmand.plus.search.QuickSearchDialogFragment; import net.osmand.plus.search.QuickSearchDialogFragment.QuickSearchTab; import net.osmand.plus.search.QuickSearchDialogFragment.QuickSearchType; +import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.settings.fragments.BaseSettingsFragment; import net.osmand.plus.settings.fragments.BaseSettingsFragment.SettingsScreenType; import net.osmand.plus.settings.fragments.ConfigureMenuItemsFragment; @@ -1450,6 +1450,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven public void updateApplicationModeSettings() { changeKeyguardFlags(); updateMapSettings(); + app.getPoiFilters().loadSelectedPoiFilters(); mapViewTrackingUtilities.updateSettings(); //app.getRoutingHelper().setAppMode(settings.getApplicationMode()); if (mapLayers.getMapInfoLayer() != null) { diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java index 24b01d96dc..2df53ec929 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java @@ -28,7 +28,6 @@ import net.osmand.IndexConstants; import net.osmand.PlatformUtil; import net.osmand.StateChangedListener; import net.osmand.ValueHolder; -import net.osmand.aidl.OsmandAidlApi; import net.osmand.data.FavouritePoint; import net.osmand.data.LatLon; import net.osmand.data.PointDescription; @@ -586,11 +585,6 @@ public class OsmandSettings { currentMode = val; profilePreferences = getProfilePreferences(currentMode); - OsmandAidlApi aidlApi = ctx.getAidlApi(); - if (aidlApi != null) { - ctx.poiFilters.loadSelectedPoiFilters(); - } - fireEvent(oldMode); } return valueSaved;