mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Primary -> coverArtId && favorite -> starred
This commit is contained in:
parent
bf09a581b9
commit
59bb2e6b03
7 changed files with 13 additions and 13 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue