Fix issue 1261
This commit is contained in:
parent
6bb53c0c5d
commit
bfba1df47b
2 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ public class OsmandExtraSettings extends OsmandPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ApplicationMode am = view.getSettings().getApplicationMode();
|
ApplicationMode am = view.getSettings().getApplicationMode();
|
||||||
view.getSettings().TRANSPARENT_MAP_THEME.set(transparent.visible(am));
|
view.getSettings().TRANSPARENT_MAP_THEME.set(!view.getSettings().TRANSPARENT_MAP_THEME.get());
|
||||||
mapInfoLayer.recreateControls();
|
mapInfoLayer.recreateControls();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -72,7 +72,7 @@ public class OsmandExtraSettings extends OsmandPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ApplicationMode am = view.getSettings().getApplicationMode();
|
ApplicationMode am = view.getSettings().getApplicationMode();
|
||||||
view.getSettings().FLUORESCENT_OVERLAYS.set(fluorescent.visible(am));
|
view.getSettings().FLUORESCENT_OVERLAYS.set(!view.getSettings().FLUORESCENT_OVERLAYS.get());
|
||||||
view.refreshMap();
|
view.refreshMap();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -238,7 +238,7 @@ public class MapInfoLayer extends OsmandMapLayer {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ApplicationMode am = view.getSettings().getApplicationMode();
|
ApplicationMode am = view.getSettings().getApplicationMode();
|
||||||
view.getSettings().SHOW_RULER.set(showRuler.visible(am));
|
view.getSettings().SHOW_RULER.set(!view.getSettings().SHOW_RULER.get());
|
||||||
view.refreshMap();
|
view.refreshMap();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -249,7 +249,7 @@ public class MapInfoLayer extends OsmandMapLayer {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ApplicationMode am = view.getSettings().getApplicationMode();
|
ApplicationMode am = view.getSettings().getApplicationMode();
|
||||||
view.getSettings().SHOW_VIEW_ANGLE.set(displayViewDirections.visible(am));
|
view.getSettings().SHOW_VIEW_ANGLE.set(!view.getSettings().SHOW_VIEW_ANGLE.get());
|
||||||
map.updateApplicationModeSettings();
|
map.updateApplicationModeSettings();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue