Update OsMoDroidPlugin.java

This commit is contained in:
vshcherb 2013-07-26 14:15:06 +02:00
parent 4cbfcdefd7
commit 378301b114

View file

@ -220,11 +220,15 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr
@Override
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
try {
if (off) {
mIRemoteService.Deactivate();
} else {
mIRemoteService.Activate();
}
} catch(Exception e) {
log.error(e.getMessage(), e);
}
}
}).reg();
}