mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
Redesign of the album page
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user