mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Moved discovery song retrieval logic in homeViewModel
This commit is contained in:
parent
ce79bda976
commit
cb8597db66
3 changed files with 32 additions and 21 deletions
|
|
@ -33,11 +33,11 @@ public class DiscoverSongAdapter extends RecyclerView.Adapter<DiscoverSongAdapte
|
|||
private Context context;
|
||||
private MainActivity activity;
|
||||
|
||||
public DiscoverSongAdapter(MainActivity activity, Context context, List<Song> songs) {
|
||||
public DiscoverSongAdapter(MainActivity activity, Context context) {
|
||||
this.activity = activity;
|
||||
this.context = context;
|
||||
this.inflater = LayoutInflater.from(context);
|
||||
this.songs = songs;
|
||||
this.songs = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue