diff --git a/OsmAnd/src/net/osmand/plus/distancecalculator/DistanceCalculatorPlugin.java b/OsmAnd/src/net/osmand/plus/distancecalculator/DistanceCalculatorPlugin.java index 0d9a9c5424..003c4dca6e 100644 --- a/OsmAnd/src/net/osmand/plus/distancecalculator/DistanceCalculatorPlugin.java +++ b/OsmAnd/src/net/osmand/plus/distancecalculator/DistanceCalculatorPlugin.java @@ -99,6 +99,9 @@ public class DistanceCalculatorPlugin extends OsmandPlugin { @Override public void updateLayers(OsmandMapTileView mapView, MapActivity activity) { if(isActive()) { + if(distanceCalculatorLayer == null) { + registerLayers(activity); + } if(!mapView.isLayerVisible(distanceCalculatorLayer)) { activity.getMapView().addLayer(distanceCalculatorLayer, 4.5f); }