forked from upstream-mirrors/OpenTracks
Aggregated stats: ordered by number number of tracks per category.
This commit is contained in:
@@ -33,8 +33,7 @@ public class AggregatedStatisticsModel extends AndroidViewModel {
|
||||
ContentProviderUtils contentProviderUtils = new ContentProviderUtils(getApplication().getApplicationContext());
|
||||
List<Track> tracks = contentProviderUtils.getTracks();
|
||||
|
||||
AggregatedStatistics aggregatedStatistics = new AggregatedStatistics();
|
||||
aggregatedStatistics.aggregate(tracks);
|
||||
AggregatedStatistics aggregatedStatistics = new AggregatedStatistics(tracks);
|
||||
|
||||
aggregatedStats.postValue(aggregatedStatistics);
|
||||
}).start();
|
||||
|
||||
Reference in New Issue
Block a user