mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Fixed bottom sheets functionality
This commit is contained in:
parent
320e3b8678
commit
2e1c21e73c
15 changed files with 348 additions and 222 deletions
|
|
@ -4,6 +4,7 @@ import android.app.Application;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.lifecycle.AndroidViewModel;
|
||||
import androidx.lifecycle.LiveData;
|
||||
|
||||
import com.cappielloantonio.play.model.Album;
|
||||
import com.cappielloantonio.play.model.Artist;
|
||||
|
|
@ -45,13 +46,11 @@ public class SongBottomSheetViewModel extends AndroidViewModel {
|
|||
}
|
||||
}
|
||||
|
||||
public Album getAlbum() {
|
||||
// return albumRepository.getAlbumByID(song.getAlbumId());
|
||||
return null;
|
||||
public LiveData<Album> getAlbum() {
|
||||
return albumRepository.getAlbum(song.getAlbumId());
|
||||
}
|
||||
|
||||
public Artist getArtist() {
|
||||
// return artistRepository.getArtistByID(song.getArtistId());
|
||||
return null;
|
||||
public LiveData<Artist> getArtist() {
|
||||
return artistRepository.getArtist(song.getArtistId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue