Removed rating system for album and artist as it seems it's not supported

This commit is contained in:
CappielloAntonio 2021-08-13 17:44:29 +02:00
parent e2ddbdf6c9
commit 75d6f3afd3
3 changed files with 0 additions and 34 deletions

View file

@ -72,18 +72,6 @@ public class RatingViewModel extends AndroidViewModel {
this.artist = artist;
}
public int getItemRating() {
if (song != null) {
return song.getRating();
} else if (album != null) {
return 0;
} else if (artist != null) {
return 0;
} else {
return 0;
}
}
public void rate(int star) {
if (song != null) {
songRepository.setRating(song.getId(), star);