From 6d8cdf1e3b00776d01c4a1c6fe796da3d7581808 Mon Sep 17 00:00:00 2001 From: fokin33 Date: Fri, 26 Jul 2013 07:36:53 -0700 Subject: [PATCH] Update OsMoDroidPlugin.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit isActive true если включен мониторинг. --- OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java index b280c0d855..f7dba1030d 100644 --- a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java @@ -214,7 +214,7 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr @Override public void addMonitorActions(final ContextMenuAdapter qa, final MonitoringInfoControl li, final OsmandMapTileView view) { - boolean o = false; + boolean o = true; try { o = mIRemoteService.isActive(); } @@ -222,7 +222,7 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr log.error(e.getMessage(), e); } - final boolean off = o; + final boolean off = !o; qa.item(off ? R.string.osmodroid_mode_off : R.string.osmodroid_mode_on ).icon( off ? R.drawable.monitoring_rec_inactive : R.drawable.monitoring_rec_big).listen(new OnContextMenuClick() {