1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Merge pull request #10396 from AudricV/one-stream-main-player-queue-button

Show play queue button in main player when there is one stream
This commit is contained in:
Audric V 2023-08-31 15:06:06 +02:00 committed by GitHub
commit 7c1790bbfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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