Added serviceId check while comparing PlayQueues
This commit is contained in:
parent
05e7a25ad8
commit
f14af0dc76
1 changed files with 5 additions and 2 deletions
|
|
@ -532,8 +532,11 @@ public abstract class PlayQueue implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < size(); i++) {
|
for (int i = 0; i < size(); i++) {
|
||||||
// Check is based on URL
|
final PlayQueueItem stream = streams.get(i);
|
||||||
if (!streams.get(i).getUrl().equals(other.streams.get(i).getUrl())) {
|
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 false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue