forked from upstream-mirrors/OpenTracks
LocationHandler.onStop(): reset state.
This commit is contained in:
@@ -43,6 +43,7 @@ class LocationHandler implements LocationListener, GpsStatus.GpsStatusListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onStop() {
|
public void onStop() {
|
||||||
|
lastTrackPoint = null;
|
||||||
if (locationManager != null) {
|
if (locationManager != null) {
|
||||||
locationManager.removeUpdates(this);
|
locationManager.removeUpdates(this);
|
||||||
locationManager = null;
|
locationManager = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user