Bugfix: location handler didn't remove updates. Fixes #403.

This commit is contained in:
Román
2020-09-03 15:28:27 +02:00
committed by Román Martínez
parent 24e6cdec62
commit b88f81726b
@@ -42,8 +42,8 @@ class LocationHandler implements HandlerServer.Handler, LocationListener, GpsSta
@Override
public void onStop(Context context) {
locationManager = null;
unregisterLocationListener();
locationManager = null;
if (gpsStatus != null) {
gpsStatus.stop();
gpsStatus = null;