forked from upstream-mirrors/OpenTracks
Fix aggregated stats don't show imperial units for avg pace
fixes #1634
This commit is contained in:
+2
-2
@@ -143,9 +143,9 @@ public class AggregatedStatisticsAdapter extends BaseAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setPace(AggregatedStatistics.AggregatedStatistic aggregatedStatistic) {
|
public void setPace(AggregatedStatistics.AggregatedStatistic aggregatedStatistic) {
|
||||||
SpeedFormatter formatter = SpeedFormatter.Builder().setUnit(unitSystem).setReportSpeedOrPace(reportSpeed).build(context);
|
|
||||||
|
|
||||||
setCommonValues(aggregatedStatistic);
|
setCommonValues(aggregatedStatistic);
|
||||||
|
|
||||||
|
SpeedFormatter formatter = SpeedFormatter.Builder().setUnit(unitSystem).setReportSpeedOrPace(reportSpeed).build(context);
|
||||||
{
|
{
|
||||||
Pair<String, String> parts = formatter.getSpeedParts(aggregatedStatistic.getTrackStatistics().getAverageMovingSpeed());
|
Pair<String, String> parts = formatter.getSpeedParts(aggregatedStatistic.getTrackStatistics().getAverageMovingSpeed());
|
||||||
avgSpeed.setText(parts.first);
|
avgSpeed.setText(parts.first);
|
||||||
|
|||||||
Reference in New Issue
Block a user