Fix favorite toggling
This commit is contained in:
parent
c77e6f132a
commit
2c0de3df48
1 changed files with 5 additions and 1 deletions
|
|
@ -243,7 +243,11 @@ public class MusicUtil {
|
|||
}
|
||||
|
||||
private static Playlist getOrCreateFavoritesPlaylist(@NonNull final Context context) {
|
||||
return PlaylistLoader.getPlaylist(context, PlaylistsUtil.createPlaylist(context, context.getString(R.string.favorites)));
|
||||
Playlist favoritesPlaylist = getFavoritesPlaylist(context);
|
||||
if (favoritesPlaylist.id == -1) {
|
||||
return PlaylistLoader.getPlaylist(context, PlaylistsUtil.createPlaylist(context, context.getString(R.string.favorites)));
|
||||
}
|
||||
return favoritesPlaylist;
|
||||
}
|
||||
|
||||
public static boolean isFavorite(@NonNull final Context context, @NonNull final Song song) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue