We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37517c7 + 01e0dd5 commit ccc3d38Copy full SHA for ccc3d38
1 file changed
app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
@@ -528,7 +528,19 @@ public boolean equals(@Nullable final Object obj) {
528
return false;
529
}
530
final PlayQueue other = (PlayQueue) obj;
531
- return streams.equals(other.streams);
+ if (size() != other.size()) {
532
+ return false;
533
+ }
534
+ for (int i = 0; i < size(); i++) {
535
+ final PlayQueueItem stream = streams.get(i);
536
+ final PlayQueueItem otherStream = other.streams.get(i);
537
+ // Check is based on serviceId and URL
538
+ if (stream.getServiceId() != otherStream.getServiceId()
539
+ || !stream.getUrl().equals(otherStream.getUrl())) {
540
541
542
543
+ return true;
544
545
546
@Override
0 commit comments