forked from upstream-mirrors/OpenTracks
Statistics: distance, total time, moving time are counted between automatic segments.
Fixes #1566.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user