mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
fix: disable shuffle button if there isn't a top song list
This commit is contained in:
@@ -196,6 +196,8 @@ public class ArtistPageFragment extends Fragment implements ClickCallback {
|
|||||||
bind.artistPageTopTracksPlaceholder.placeholder.setVisibility(View.GONE);
|
bind.artistPageTopTracksPlaceholder.placeholder.setVisibility(View.GONE);
|
||||||
if (bind != null)
|
if (bind != null)
|
||||||
bind.artistPageTopSongsSector.setVisibility(!songs.isEmpty() ? View.VISIBLE : View.GONE);
|
bind.artistPageTopSongsSector.setVisibility(!songs.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
|
if (bind != null)
|
||||||
|
bind.artistPageShuffleButton.setEnabled(!songs.isEmpty());
|
||||||
songHorizontalAdapter.setItems(songs);
|
songHorizontalAdapter.setItems(songs);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user