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 @Override
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) { public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
try {
if (off) { if (off) {
mIRemoteService.Deactivate(); mIRemoteService.Deactivate();
} else { } else {
mIRemoteService.Activate(); mIRemoteService.Activate();
} }
} catch(Exception e) {
log.error(e.getMessage(), e);
}
} }
}).reg(); }).reg();
} }