Osmodroid bug
This commit is contained in:
parent
b20bbda267
commit
ed5d1c675f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue