Removed unused database references

This commit is contained in:
CappielloAntonio 2021-07-28 15:28:32 +02:00
parent ca1831d23c
commit ce79bda976
46 changed files with 182 additions and 1975 deletions

View file

@ -10,7 +10,7 @@ public class QueueUtil {
private static final String TAG = "QueueUtil";
public static Queue getQueueElementFromSong(Song song, int startingPosition) {
return new Queue(startingPosition, song.getId());
return new Queue(startingPosition, song.getId(), song.getTitle(), song.getAlbumId(), song.getAlbumName(), song.getArtistId(), song.getArtistName(), song.getPrimary());
}
public static List<Queue> getQueueElementsFromSongs(List<Song> songs) {
@ -18,7 +18,7 @@ public class QueueUtil {
List<Queue> queue = new ArrayList<>();
for (Song song : songs) {
queue.add(new Queue(counter, song.getId()));
queue.add(new Queue(counter, song.getId(), song.getTitle(), song.getAlbumId(), song.getAlbumName(), song.getArtistId(), song.getArtistName(), song.getPrimary()));
counter++;
}