TrackPointCreator needs to reset GPSHandler as it might have been running beforehand.

This commit is contained in:
Dennis Guse
2022-01-17 19:17:03 +01:00
parent 40fb9b05bc
commit 5998f9127d
3 changed files with 9 additions and 10 deletions
@@ -162,14 +162,12 @@ public class GPSHandler implements LocationListener, GpsStatus.GpsStatusListener
return thresholdHorizontalAccuracy;
}
/**
* Called from {@link GpsStatus} to inform that GPS status has changed from prevStatus to currentStatus.
*
* @param prevStatus previous {@link GpsStatusValue}.
* @param currentStatus current {@link GpsStatusValue}.
*/
@Override
public void onGpsStatusChanged(GpsStatusValue prevStatus, GpsStatusValue currentStatus) {
trackPointCreator.sendGpsStatus(currentStatus);
}
void reset() {
lastTrackPoint = null;
}
}