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
@@ -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();