mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-09 12:53:05 +02:00
IntervalStatisticsUpdater now uses Statistics.
This commit is contained in:
@@ -361,10 +361,6 @@ public class SegmentStatisticUpdater {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasTotalAltitudeGain() {
|
||||
return totalAltitudeGain_m != null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Float getTotalAltitudeGain() {
|
||||
return totalAltitudeGain_m;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class TrackStatisticsUpdater {
|
||||
}
|
||||
|
||||
//TODO Return Statistic?
|
||||
@Deprecated
|
||||
public SegmentStatisticUpdater getTrackStatistics() {
|
||||
// Take a snapshot - we don't want anyone messing with our trackStatistics
|
||||
SegmentStatisticUpdater stats = new SegmentStatisticUpdater(segmentStatisticUpdater);
|
||||
@@ -86,6 +87,10 @@ public class TrackStatisticsUpdater {
|
||||
return stats;
|
||||
}
|
||||
|
||||
public Statistics getStatistics() {
|
||||
return getTrackStatistics().getStatistics();
|
||||
}
|
||||
|
||||
public Statistics getCurrentSegment() {
|
||||
return currentSegment.getStatistics();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user