feat: added additional information about the album on the dedicated detail page

This commit is contained in:
CappielloAntonio 2024-03-16 15:50:06 +01:00
parent dd085a2cdb
commit 302458e76b
6 changed files with 139 additions and 5 deletions

View file

@ -9,6 +9,7 @@ import androidx.lifecycle.LiveData;
import com.cappielloantonio.tempo.repository.AlbumRepository;
import com.cappielloantonio.tempo.repository.ArtistRepository;
import com.cappielloantonio.tempo.subsonic.models.AlbumID3;
import com.cappielloantonio.tempo.subsonic.models.AlbumInfo;
import com.cappielloantonio.tempo.subsonic.models.ArtistID3;
import com.cappielloantonio.tempo.subsonic.models.Child;
@ -42,4 +43,8 @@ public class AlbumPageViewModel extends AndroidViewModel {
public LiveData<ArtistID3> getArtist() {
return artistRepository.getArtistInfo(album.getArtistId());
}
public LiveData<AlbumInfo> getAlbumInfo() {
return albumRepository.getAlbumInfo(album.getId());
}
}