Some refactorings after review comments

This commit is contained in:
Stypox 2022-07-09 17:17:30 +02:00
parent 7e64750460
commit 65651e0302
5 changed files with 42 additions and 60 deletions

View file

@ -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()) {