Hide song/album/artist sector when there are no elements to show

This commit is contained in:
CappielloAntonio 2021-07-30 17:20:12 +02:00
parent b5eaa1e523
commit 02d6ad9629
3 changed files with 13 additions and 3 deletions

View file

@ -47,7 +47,7 @@ public class LibraryViewModel extends AndroidViewModel {
sampleAlbum = albumRepository.getAlbums("random", 20);
sampleArtist = artistRepository.getArtists(true, 20);
sampleGenres = new MutableLiveData<>();
sampleGenres = new MutableLiveData<>(new ArrayList<>());
playlistSample = playlistRepository.getPlaylists(true, 10);
}