From 7843aede9d5edfa6d8e6851a0359a317bc06b467 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Mon, 9 Nov 2020 10:06:54 +0200 Subject: [PATCH] Fix #9069 Polygons become visible after underlay change --- OsmAnd/src/net/osmand/plus/dialogs/RasterMapMenu.java | 7 ------- .../net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java | 3 --- 2 files changed, 10 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/RasterMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/RasterMapMenu.java index 8219cc5a23..54cb7ba447 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/RasterMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/RasterMapMenu.java @@ -79,13 +79,6 @@ public class RasterMapMenu { new OnMapSelectedCallback() { @Override public void onMapSelected(boolean canceled) { - if (type == RasterMapType.UNDERLAY && !canceled && !selected) { - hidePolygonsPref.set(true); - refreshMapComplete(mapActivity); - } else if (type == RasterMapType.UNDERLAY && !canceled && mapTypePreference.get() == null) { - hidePolygonsPref.set(false); - refreshMapComplete(mapActivity); - } mapActivity.getDashboard().refreshContent(true); } }; diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java index 942a34cbf1..e96edba607 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java @@ -339,9 +339,6 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { adapter.notifyDataSetChanged(); - final CommonPreference hidePolygonsPref = - mapActivity.getMyApplication().getSettings().getCustomRenderBooleanProperty("noPolygons"); - hidePolygonsPref.set(hasUnderlayDescription); RasterMapMenu.refreshMapComplete(mapActivity); } }