diff --git a/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java b/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java index 8ae613414..172f31fcb 100644 --- a/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java +++ b/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java @@ -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(); } diff --git a/src/org/thoughtcrime/securesms/map/MarkerViewManager.java b/src/org/thoughtcrime/securesms/map/MarkerViewManager.java index 390441f50..326318465 100644 --- a/src/org/thoughtcrime/securesms/map/MarkerViewManager.java +++ b/src/org/thoughtcrime/securesms/map/MarkerViewManager.java @@ -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()); }