mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 10:23:33 +00:00
Open the downloaded artist detail in ArtistListPageFragment
This commit is contained in:
parent
ef645143e0
commit
8cef75c763
6 changed files with 17 additions and 14 deletions
|
|
@ -88,7 +88,7 @@ public class ArtistListPageFragment extends Fragment {
|
|||
bind.artistListRecyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
|
||||
bind.artistListRecyclerView.setHasFixedSize(true);
|
||||
|
||||
artistHorizontalAdapter = new ArtistHorizontalAdapter(requireContext());
|
||||
artistHorizontalAdapter = new ArtistHorizontalAdapter(requireContext(), artistListPageViewModel.title.equals(Artist.DOWNLOADED));
|
||||
bind.artistListRecyclerView.setAdapter(artistHorizontalAdapter);
|
||||
artistListPageViewModel.getArtistList(requireActivity()).observe(requireActivity(), artists -> artistHorizontalAdapter.setItems(artists));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ public class DownloadFragment extends Fragment {
|
|||
private void initDownloadedArtistView() {
|
||||
bind.downloadedArtistRecyclerView.setHasFixedSize(true);
|
||||
|
||||
downloadedArtistAdapter = new ArtistHorizontalAdapter(requireContext());
|
||||
downloadedArtistAdapter = new ArtistHorizontalAdapter(requireContext(), false);
|
||||
bind.downloadedArtistRecyclerView.setAdapter(downloadedArtistAdapter);
|
||||
downloadViewModel.getDownloadedArtists(requireActivity(), 20).observe(requireActivity(), artists -> {
|
||||
if (artists == null) {
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ public class HomeFragment extends Fragment {
|
|||
private void initStarredArtistsView() {
|
||||
bind.starredArtistsRecyclerView.setHasFixedSize(true);
|
||||
|
||||
starredArtistAdapter = new ArtistHorizontalAdapter(requireContext());
|
||||
starredArtistAdapter = new ArtistHorizontalAdapter(requireContext(), false);
|
||||
bind.starredArtistsRecyclerView.setAdapter(starredArtistAdapter);
|
||||
homeViewModel.getStarredArtists(requireActivity()).observe(requireActivity(), artists -> {
|
||||
if (artists == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue