[Regression] Fix videos added multiple times to detail fragment stack
This commit is contained in:
parent
c05d99a77c
commit
8c52a2712e
1 changed files with 1 additions and 1 deletions
|
|
@ -1756,7 +1756,7 @@ public final class VideoDetailFragment
|
||||||
// deleted/added items inside Channel/Playlist queue and makes possible to have
|
// deleted/added items inside Channel/Playlist queue and makes possible to have
|
||||||
// a history of played items
|
// a history of played items
|
||||||
@Nullable final StackItem stackPeek = stack.peek();
|
@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();
|
@Nullable final PlayQueueItem playQueueItem = queue.getItem();
|
||||||
if (playQueueItem != null) {
|
if (playQueueItem != null) {
|
||||||
stack.push(new StackItem(playQueueItem.getServiceId(), playQueueItem.getUrl(),
|
stack.push(new StackItem(playQueueItem.getServiceId(), playQueueItem.getUrl(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue