Statistics: distance, total time, moving time are counted between automatic segments.

Fixes #1566.
This commit is contained in:
Dennis Guse
2023-05-31 17:25:09 +02:00
parent 3f891f7fb4
commit 11c5ec43e2
6 changed files with 26 additions and 26 deletions
@@ -95,7 +95,7 @@ public class TrackStatisticsUpdater {
*
*/
public void addTrackPoint(TrackPoint trackPoint) {
if (trackPoint.isSegmentStart()) {
if (trackPoint.isSegmentManualStart()) {
reset(trackPoint);
}
@@ -154,7 +154,7 @@ public class TrackStatisticsUpdater {
updateSpeed(trackPoint, lastTrackPoint);
}
if (trackPoint.isSegmentEnd()) {
if (trackPoint.isSegmentManualEnd()) {
reset(trackPoint);
return;
}