diff --git a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java index 0cffef3247..a323776e98 100644 --- a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java @@ -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(); }