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
|
@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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue