forked from upstream-mirrors/OpenTracks
GPSManager: on stop() release reference to observer.
This commit is contained in:
@@ -31,7 +31,7 @@ public class GPSManager implements SensorConnector, LocationListenerCompat, GpsS
|
|||||||
|
|
||||||
private static final String LOCATION_PROVIDER = LocationManager.GPS_PROVIDER;
|
private static final String LOCATION_PROVIDER = LocationManager.GPS_PROVIDER;
|
||||||
|
|
||||||
private final TrackPointCreator trackPointCreator;
|
private TrackPointCreator trackPointCreator;
|
||||||
private Context context;
|
private Context context;
|
||||||
private Handler handler;
|
private Handler handler;
|
||||||
|
|
||||||
@@ -71,6 +71,8 @@ public class GPSManager implements SensorConnector, LocationListenerCompat, GpsS
|
|||||||
|
|
||||||
gpsStatusManager.stop();
|
gpsStatusManager.stop();
|
||||||
gpsStatusManager = null;
|
gpsStatusManager = null;
|
||||||
|
|
||||||
|
trackPointCreator = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user