mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Fix genre retrieval and filtering
This commit is contained in:
parent
37e45e7957
commit
fd4250b6f7
11 changed files with 139 additions and 73 deletions
|
|
@ -40,14 +40,9 @@ public class LibraryViewModel extends AndroidViewModel {
|
|||
|
||||
// Inizializzate all'interno del costruttore, in modo da rimanere immutabili per tutto il
|
||||
// ciclo di vita dell'applicazione
|
||||
// sampleAlbum = albumRepository.getListLiveSampleAlbum();
|
||||
// sampleArtist = artistRepository.getListLiveSampleArtist();
|
||||
// sampleGenres = genreRepository.getListLiveSampleGenre();
|
||||
// playlistSample = playlistRepository.getRandomSample(5);
|
||||
|
||||
sampleAlbum = albumRepository.getAlbums("random", 20);
|
||||
sampleArtist = artistRepository.getArtists(true, 20);
|
||||
sampleGenres = new MutableLiveData<>(new ArrayList<>());
|
||||
sampleGenres = genreRepository.getGenres(true, 15);
|
||||
playlistSample = playlistRepository.getPlaylists(true, 10);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue