From bfba1df47be026ee12b7b0a91ec8060607d647ef Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 17 Aug 2012 00:29:09 +0200 Subject: [PATCH] Fix issue 1261 --- .../net/osmand/plus/extrasettings/OsmandExtraSettings.java | 4 ++-- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/extrasettings/OsmandExtraSettings.java b/OsmAnd/src/net/osmand/plus/extrasettings/OsmandExtraSettings.java index 0fd98fa483..eaeb7f6a88 100644 --- a/OsmAnd/src/net/osmand/plus/extrasettings/OsmandExtraSettings.java +++ b/OsmAnd/src/net/osmand/plus/extrasettings/OsmandExtraSettings.java @@ -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(); } }); diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index a4825ca578..cf67536e69 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -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(); } });