Fix #7750
This commit is contained in:
parent
921a87d701
commit
eed8850eb5
2 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,9 @@ public class MapOverlayAction extends SwitchableAction<Pair<String, String>> {
|
|||
if (hasOverlay) {
|
||||
settings.MAP_OVERLAY.set(params);
|
||||
settings.MAP_OVERLAY_PREVIOUS.set(params);
|
||||
if (settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.get() == LayerTransparencySeekbarMode.UNDEFINED) {
|
||||
settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.set(LayerTransparencySeekbarMode.OVERLAY);
|
||||
}
|
||||
if (settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.get() == OsmandSettings.LayerTransparencySeekbarMode.OVERLAY) {
|
||||
activity.getMapLayers().getMapControlsLayer().showTransparencyBar(settings.MAP_OVERLAY_TRANSPARENCY, true);
|
||||
}
|
||||
|
|
|
@ -119,6 +119,9 @@ public class MapUnderlayAction extends SwitchableAction<Pair<String, String>> {
|
|||
if (hasUnderlay) {
|
||||
settings.MAP_UNDERLAY.set(params);
|
||||
settings.MAP_UNDERLAY_PREVIOUS.set(params);
|
||||
if (settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.get() == LayerTransparencySeekbarMode.UNDEFINED) {
|
||||
settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.set(LayerTransparencySeekbarMode.UNDERLAY);
|
||||
}
|
||||
if (settings.LAYER_TRANSPARENCY_SEEKBAR_MODE.get() == LayerTransparencySeekbarMode.UNDERLAY) {
|
||||
activity.getMapLayers().getMapControlsLayer().showTransparencyBar(settings.MAP_TRANSPARENCY, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue