Merge pull request #11259 from osmandapp/Fix_11045

Fix #11045
This commit is contained in:
Vitaliy 2021-03-26 14:38:26 +02:00 committed by GitHub
commit 0480d39439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")) {