1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 02:53:09 +01:00

Show play queue button in main player when there is one stream

This commit is contained in:
AudricV 2023-08-28 00:26:10 +02:00
parent 25cf917969
commit 2d16a06bc4
No known key found for this signature in database
GPG Key ID: DA92EC7905614198

View File

@ -434,7 +434,7 @@ public final class MainPlayerUi extends VideoPlayerUi implements View.OnLayoutCh
return;
}
final boolean showQueue = playQueue.getStreams().size() > 1;
final boolean showQueue = !playQueue.getStreams().isEmpty();
final boolean showSegment = !player.getCurrentStreamInfo()
.map(StreamInfo::getStreamSegments)
.map(List::isEmpty)