Fix #3090
This commit is contained in:
parent
d0bbfb673c
commit
b7c3c11d87
1 changed files with 8 additions and 0 deletions
|
@ -304,6 +304,14 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (overlayLayer.getMap() == null) {
|
||||||
|
settings.MAP_OVERLAY.set(null);
|
||||||
|
settings.MAP_OVERLAY_PREVIOUS.set(null);
|
||||||
|
}
|
||||||
|
if (underlayLayer.getMap() == null) {
|
||||||
|
settings.MAP_UNDERLAY.set(null);
|
||||||
|
settings.MAP_UNDERLAY_PREVIOUS.set(null);
|
||||||
|
}
|
||||||
String overlayMapDescr = settings.MAP_OVERLAY.get();
|
String overlayMapDescr = settings.MAP_OVERLAY.get();
|
||||||
boolean hasOverlayDescription = overlayMapDescr != null;
|
boolean hasOverlayDescription = overlayMapDescr != null;
|
||||||
overlayMapDescr = hasOverlayDescription ? overlayMapDescr : mapActivity.getString(R.string.shared_string_none);
|
overlayMapDescr = hasOverlayDescription ? overlayMapDescr : mapActivity.getString(R.string.shared_string_none);
|
||||||
|
|
Loading…
Reference in a new issue