mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Redesign of the album page
This commit is contained in:
parent
ca37adc33a
commit
8810184e6e
4 changed files with 56 additions and 16 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue