mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-04 02:13:07 +02:00
IntervalStatisticsUpdater now uses Statistics.
This commit is contained in:
@@ -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