mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Removed rating system for album and artist as it seems it's not supported
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user