mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-03-19 11:53:09 +00:00
Primary -> coverArtId && favorite -> starred
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user