mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
fix: disable shuffle button if there isn't a top song list
This commit is contained in:
parent
e35aed9cc4
commit
28fef53590
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue