Merge pull request #874 from deltachat/no_network_provider

No network provider
This commit is contained in:
björn petersen
2019-04-26 23:10:59 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
@@ -46,7 +46,7 @@ public class LocationBackgroundService extends Service {
}
locationListener = new ServiceLocationListener();
requestLocationUpdate(LocationManager.NETWORK_PROVIDER);
//requestLocationUpdate(LocationManager.NETWORK_PROVIDER);
requestLocationUpdate(LocationManager.GPS_PROVIDER);
initialLocationUpdate();
}
@@ -83,6 +83,10 @@ public class MarkerViewManager implements MapView.OnDidFinishRenderingFrameListe
}
public void removeMarkers() {
if (mapView.isDestroyed()) {
return;
}
for (MarkerView markerView : markers) {
mapView.removeView(markerView.getView());
}