forked from upstream-mirrors/OpenTracks
@@ -333,9 +333,10 @@ public class StatisticsRecordingFragment extends Fragment implements TrackDataLi
|
|||||||
lastTrackPoint = null;
|
lastTrackPoint = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastTrackPoint != null) {
|
TrackPoint trackPoint = lastTrackPoint; //NOTE: There seems to be a race condition; just fix the symptom for now.
|
||||||
boolean hasFix = !LocationUtils.isLocationOld(lastTrackPoint.getLocation());
|
if (trackPoint != null) {
|
||||||
boolean hasGoodFix = TrackPointUtils.fulfillsAccuracy(lastTrackPoint, recordingGpsAccuracy);
|
boolean hasFix = !LocationUtils.isLocationOld(trackPoint.getLocation());
|
||||||
|
boolean hasGoodFix = TrackPointUtils.fulfillsAccuracy(trackPoint, recordingGpsAccuracy);
|
||||||
|
|
||||||
if (!hasFix || !hasGoodFix) {
|
if (!hasFix || !hasGoodFix) {
|
||||||
lastTrackPoint = null;
|
lastTrackPoint = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user