Fix #9069 Polygons become visible after underlay change
This commit is contained in:
parent
12ae33ef8f
commit
7843aede9d
2 changed files with 0 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -339,9 +339,6 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
|
|||
|
||||
adapter.notifyDataSetChanged();
|
||||
|
||||
final CommonPreference<Boolean> hidePolygonsPref =
|
||||
mapActivity.getMyApplication().getSettings().getCustomRenderBooleanProperty("noPolygons");
|
||||
hidePolygonsPref.set(hasUnderlayDescription);
|
||||
RasterMapMenu.refreshMapComplete(mapActivity);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue