mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
fix: null checking
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user