Aggregated stats: ordered by number number of tracks per category.

This commit is contained in:
Dennis Guse
2020-12-13 22:44:44 +01:00
parent e1e7c24d9f
commit 5675dc800d
4 changed files with 59 additions and 50 deletions
@@ -62,17 +62,17 @@ public class AggregatedStatisticsAdapter extends BaseAdapter {
}
private boolean isSpeedSport(int position) {
String category = aggregatedStatistics.getSportName(position);
String category = aggregatedStatistics.getCategory(position);
return TrackIconUtils.isSpeedIcon(context, category);
}
private int getIcon(int position) {
String iconValue = TrackIconUtils.getIconValue(context, aggregatedStatistics.getSportName(position));
String iconValue = TrackIconUtils.getIconValue(context, aggregatedStatistics.getCategory(position));
return TrackIconUtils.getIconDrawable(iconValue);
}
private String getName(int position) {
return aggregatedStatistics.getSportName(position);
return aggregatedStatistics.getCategory(position);
}
private class ViewHolder {