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); } }