[android] keep location component's layers hidden when new style with the "layer-below" option is applied

This commit is contained in:
Łukasz Paczos
2019-02-18 12:34:27 +01:00
committed by Łukasz Paczos
parent 056073a904
commit f5a0e96a5f
2 changed files with 33 additions and 4 deletions

View File

@@ -111,6 +111,11 @@ final class LocationLayerController {
if (layerBelow == null || !layerBelow.equals(newLayerBelowOption)) {
removeLayers();
addLayers(newLayerBelowOption);
if (isHidden) {
for (String layerId : layerMap) {
setLayerVisibility(layerId, false);
}
}
setRenderMode(renderMode);
}
}