mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
refactor: put grouped into bundle instead of songs
This commit is contained in:
@@ -80,7 +80,7 @@ public class DownloadHorizontalAdapter extends RecyclerView.Adapter<DownloadHori
|
|||||||
this.filterKey = filterKey;
|
this.filterKey = filterKey;
|
||||||
this.filterValue = filterValue;
|
this.filterValue = filterValue;
|
||||||
|
|
||||||
this.songs = filterSong(filterKey, filterValue, songs);
|
this.songs = songs;
|
||||||
this.grouped = groupSong(songs);
|
this.grouped = groupSong(songs);
|
||||||
|
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
@@ -261,7 +261,7 @@ public class DownloadHorizontalAdapter extends RecyclerView.Adapter<DownloadHori
|
|||||||
|
|
||||||
switch (view) {
|
switch (view) {
|
||||||
case Constants.DOWNLOAD_TYPE_TRACK:
|
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());
|
bundle.putInt(Constants.ITEM_POSITION, getBindingAdapterPosition());
|
||||||
click.onMediaClick(bundle);
|
click.onMediaClick(bundle);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user