mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-17 11:16:28 -07:00
feat: rating dialog added to album page
This commit is contained in:
parent
698ca3b22b
commit
1bbcf6c790
4 changed files with 24 additions and 1 deletions
|
|
@ -63,7 +63,11 @@ public class RatingDialog extends DialogFragment {
|
|||
bind.ratingBar.setRating(song.getUserRating() != null ? song.getUserRating() : 0);
|
||||
});
|
||||
} else if (ratingViewModel.getAlbum() != null) {
|
||||
ratingViewModel.getLiveAlbum().observe(this, album -> bind.ratingBar.setRating(/*album.getRating()*/ 0));
|
||||
ratingViewModel.getLiveAlbum().observe(this, album -> {
|
||||
if (album != null) {
|
||||
bind.ratingBar.setRating(album.getUserRating() != null ? album.getUserRating() : 0);
|
||||
}
|
||||
});
|
||||
} else if (ratingViewModel.getArtist() != null) {
|
||||
ratingViewModel.getLiveArtist().observe(this, artist -> bind.ratingBar.setRating(/*artist.getRating()*/ 0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue