Osmodroid bug

This commit is contained in:
Victor Shcherb 2013-07-26 01:49:06 +02:00
parent b20bbda267
commit ed5d1c675f

View file

@ -63,6 +63,10 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr
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);
}
}
MapActivity activity;