This commit is contained in:
nazar-kutz 2021-03-26 00:34:12 +02:00
parent de386f5286
commit f1aedd7ef0

View file

@ -369,8 +369,10 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
settings.MAP_OVERLAY_PREVIOUS.set(null);
}
if (underlayLayer.getMap() == null) {
settings.MAP_UNDERLAY.removeListener(underlayListener);
settings.MAP_UNDERLAY.set(null);
settings.MAP_UNDERLAY_PREVIOUS.set(null);
settings.MAP_UNDERLAY.addListener(underlayListener);
}
String overlayMapDescr = settings.MAP_OVERLAY.get();
if (overlayMapDescr!=null && overlayMapDescr.contains(".sqlitedb")) {