Primary -> coverArtId && favorite -> starred

This commit is contained in:
CappielloAntonio 2022-02-07 17:36:12 +01:00
parent bf09a581b9
commit 59bb2e6b03
7 changed files with 13 additions and 13 deletions

View file

@ -41,12 +41,12 @@ public class SongBottomSheetViewModel extends AndroidViewModel {
}
public void setFavorite(Context context) {
if (song.isFavorite()) {
if (song.isStarred()) {
songRepository.unstar(song.getId());
song.setFavorite(false);
song.setStarred(false);
} else {
songRepository.star(song.getId());
song.setFavorite(true);
song.setStarred(true);
if (PreferenceUtil.getInstance(context).isStarredSyncEnabled()) {
DownloadUtil.getDownloadTracker(context).download(