Fix issue 1261

This commit is contained in:
Victor Shcherb 2012-08-17 00:29:09 +02:00
parent 6bb53c0c5d
commit bfba1df47b
2 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ public class OsmandExtraSettings extends OsmandPlugin {
@Override
public void run() {
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();
}
});
@ -72,7 +72,7 @@ public class OsmandExtraSettings extends OsmandPlugin {
@Override
public void run() {
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 file

@ -238,7 +238,7 @@ public class MapInfoLayer extends OsmandMapLayer {
@Override
public void run() {
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();
}
});
@ -249,7 +249,7 @@ public class MapInfoLayer extends OsmandMapLayer {
@Override
public void run() {
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();
}
});