refactor: put grouped into bundle instead of songs

This commit is contained in:
Tim Schneeberger 2023-08-14 18:08:11 +02:00
parent 59d7adb66d
commit a0b67a06f4

View file

@ -80,7 +80,7 @@ public class DownloadHorizontalAdapter extends RecyclerView.Adapter<DownloadHori
this.filterKey = filterKey;
this.filterValue = filterValue;
this.songs = filterSong(filterKey, filterValue, songs);
this.songs = songs;
this.grouped = groupSong(songs);
notifyDataSetChanged();
@ -261,7 +261,7 @@ public class DownloadHorizontalAdapter extends RecyclerView.Adapter<DownloadHori
switch (view) {
case Constants.DOWNLOAD_TYPE_TRACK:
bundle.putParcelableArrayList(Constants.TRACKS_OBJECT, new ArrayList<>(songs));
bundle.putParcelableArrayList(Constants.TRACKS_OBJECT, new ArrayList<>(grouped));
bundle.putInt(Constants.ITEM_POSITION, getBindingAdapterPosition());
click.onMediaClick(bundle);
break;