Redesign of the album page

This commit is contained in:
CappielloAntonio 2021-08-02 18:27:55 +02:00
parent ca37adc33a
commit 8810184e6e
4 changed files with 56 additions and 16 deletions

View file

@ -22,6 +22,7 @@ public class AlbumPageViewModel extends AndroidViewModel {
private ArtistRepository artistRepository;
private LiveData<List<Song>> songLiveList = new MutableLiveData<>();
private LiveData<Album> albumInfo = new MutableLiveData<>();
private Album album;
@ -49,4 +50,8 @@ public class AlbumPageViewModel extends AndroidViewModel {
public LiveData<Artist> getArtist() {
return artistRepository.getArtistInfo(album.getArtistId());
}
public LiveData<Album> getAlbumInfo() {
return albumRepository.getAlbumInfo(album.getId());
}
}