Merge pull request #480 from fokin33/patch-1

Update OsMoDroidPlugin.java
This commit is contained in:
vshcherb 2013-07-26 05:56:03 -07:00
commit f3dd45b9b0

View file

@ -214,7 +214,14 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr
@Override
public void addMonitorActions(final ContextMenuAdapter qa, final MonitoringInfoControl li, final OsmandMapTileView view) {
final boolean off = !view.getSettings().SAVE_TRACK_TO_GPX.get();
final boolean off = false;
try {
off = mIRemoteService.isActive();
}
catch(Exception e) {
log.error(e.getMessage(), e);
}
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() {