LocationLayer: move lazy enable to application #171

This commit is contained in:
Emux 2016-12-08 20:26:50 +02:00
parent b6dc72bbb6
commit 3e4aad4d51
2 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,7 @@ public class LocationActivity extends SimpleMapActivity implements LocationListe
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationLayer = new LocationLayer(mMap);
locationLayer.setEnabled(false);
mMap.layers().add(locationLayer);
}

View File

@ -27,7 +27,6 @@ public class LocationLayer extends Layer {
super(map);
mRenderer = locationRenderer = new LocationRenderer(mMap, this);
setEnabled(false);
}
@Override