Merge pull request #481 from fokin33/patch-2

Update OsMoDroidPlugin.java
This commit is contained in:
vshcherb 2013-07-26 08:25:16 -07:00
commit 68447f83d7

View file

@ -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() {