Some refactorings after review comments
This commit is contained in:
parent
7e64750460
commit
65651e0302
5 changed files with 42 additions and 60 deletions
|
|
@ -168,7 +168,7 @@ public abstract class PlaylistDialog extends DialogFragment implements StateSave
|
|||
|
||||
final List<StreamEntity> streamEntities = Stream.of(player.getPlayQueue())
|
||||
.filter(Objects::nonNull)
|
||||
.flatMap(playQueue -> Objects.requireNonNull(playQueue).getStreams().stream())
|
||||
.flatMap(playQueue -> playQueue.getStreams().stream())
|
||||
.map(StreamEntity::new)
|
||||
.collect(Collectors.toList());
|
||||
if (streamEntities.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue