Merge pull request #480 from fokin33/patch-1
Update OsMoDroidPlugin.java
This commit is contained in:
commit
f3dd45b9b0
1 changed files with 8 additions and 1 deletions
|
@ -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() {
|
||||
|
||||
|
|
Loading…
Reference in a new issue