mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Removed rating system for album and artist as it seems it's not supported
This commit is contained in:
parent
e2ddbdf6c9
commit
75d6f3afd3
3 changed files with 0 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue