mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
commit
ccc3d38c45
@ -528,7 +528,19 @@ public abstract class PlayQueue implements Serializable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final PlayQueue other = (PlayQueue) obj;
|
final PlayQueue other = (PlayQueue) obj;
|
||||||
return streams.equals(other.streams);
|
if (size() != other.size()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
for (int i = 0; i < size(); i++) {
|
||||||
|
final PlayQueueItem stream = streams.get(i);
|
||||||
|
final PlayQueueItem otherStream = other.streams.get(i);
|
||||||
|
// Check is based on serviceId and URL
|
||||||
|
if (stream.getServiceId() != otherStream.getServiceId()
|
||||||
|
|| !stream.getUrl().equals(otherStream.getUrl())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user