forked from upstream-mirrors/OpenTracks
Bugfix: location handler didn't remove updates. Fixes #403.
This commit is contained in:
@@ -42,8 +42,8 @@ class LocationHandler implements HandlerServer.Handler, LocationListener, GpsSta
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStop(Context context) {
|
public void onStop(Context context) {
|
||||||
locationManager = null;
|
|
||||||
unregisterLocationListener();
|
unregisterLocationListener();
|
||||||
|
locationManager = null;
|
||||||
if (gpsStatus != null) {
|
if (gpsStatus != null) {
|
||||||
gpsStatus.stop();
|
gpsStatus.stop();
|
||||||
gpsStatus = null;
|
gpsStatus = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user