Update OsMoDroidPlugin.java
This commit is contained in:
parent
4cbfcdefd7
commit
378301b114
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue