1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-13 20:29:27 +01:00

[Regression] Fix videos added multiple times to detail fragment stack

This commit is contained in:
Stypox 2020-11-13 21:39:27 +01:00
parent 620bb54881
commit 4c7b5d44a0
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -1756,7 +1756,7 @@ public final class VideoDetailFragment
// deleted/added items inside Channel/Playlist queue and makes possible to have
// a history of played items
@Nullable final StackItem stackPeek = stack.peek();
if (stackPeek != null && stackPeek.getPlayQueue().equals(queue)) {
if (stackPeek != null && !stackPeek.getPlayQueue().equals(queue)) {
@Nullable final PlayQueueItem playQueueItem = queue.getItem();
if (playQueueItem != null) {
stack.push(new StackItem(playQueueItem.getServiceId(), playQueueItem.getUrl(),