This commit is contained in:
vshcherb 2014-05-05 02:10:00 +02:00
parent 1deeef93c9
commit cdce9eb2cc

View file

@ -67,6 +67,16 @@ public class OsMoPlugin extends OsmandPlugin implements MonitoringInfoControlSer
return app.getString(R.string.osmo_plugin_name) ;
}
@Override
public void updateLayers(OsmandMapTileView mapView, MapActivity activity) {
// registerLayers(activity);
super.updateLayers(mapView, activity);
MonitoringInfoControl lock = activity.getMapLayers().getMapInfoLayer().getMonitoringInfoControl();
if(lock != null && !lock.getMonitorActions().contains(this)) {
lock.addMonitorActions(this);
}
}
@Override
public void addMonitorActions(ContextMenuAdapter qa, MonitoringInfoControl li, final OsmandMapTileView view) {
final boolean off = service.isActive();