mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: null checking
This commit is contained in:
parent
3d4437151a
commit
37ffb88d67
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ public class PlaylistPageFragment extends Fragment implements ClickCallback {
|
||||||
|
|
||||||
private void initBackCover() {
|
private void initBackCover() {
|
||||||
playlistPageViewModel.getPlaylistSongLiveList().observe(requireActivity(), songs -> {
|
playlistPageViewModel.getPlaylistSongLiveList().observe(requireActivity(), songs -> {
|
||||||
if (bind != null) {
|
if (bind != null && songs != null && !songs.isEmpty()) {
|
||||||
Collections.shuffle(songs);
|
Collections.shuffle(songs);
|
||||||
|
|
||||||
// Pic top-left
|
// Pic top-left
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue