Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-08-30 20:58:48 +02:00
commit 801e0bbc74

View file

@ -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);
}