fix: disable shuffle button if there isn't a top song list

This commit is contained in:
CappielloAntonio 2024-02-17 23:54:50 +01:00
parent e35aed9cc4
commit 28fef53590

View file

@ -196,6 +196,8 @@ public class ArtistPageFragment extends Fragment implements ClickCallback {
bind.artistPageTopTracksPlaceholder.placeholder.setVisibility(View.GONE);
if (bind != null)
bind.artistPageTopSongsSector.setVisibility(!songs.isEmpty() ? View.VISIBLE : View.GONE);
if (bind != null)
bind.artistPageShuffleButton.setEnabled(!songs.isEmpty());
songHorizontalAdapter.setItems(songs);
}
});