much simpler, "uploader" will never change on a playlist
This commit is contained in:
parent
bd2b32bfbc
commit
3794002c7b
|
@ -74,18 +74,9 @@ public class PlaylistRemoteEntity implements PlaylistLocalItem {
|
|||
|
||||
@Ignore
|
||||
public boolean isIdenticalTo(final PlaylistInfo info) {
|
||||
boolean returnMe;
|
||||
if (!TextUtils.isEmpty(getUploader())) { // If the playlist has an uploader
|
||||
returnMe = getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
|
||||
return getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
|
||||
getStreamCount() == info.getStreamCount() && getUrl().equals(info.getUrl()) &&
|
||||
getThumbnailUrl().equals(info.getThumbnailUrl()) &&
|
||||
getUploader().equals(info.getUploaderName());
|
||||
} else { // Else ignore uploader
|
||||
returnMe = getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
|
||||
getStreamCount() == info.getStreamCount() && getUrl().equals(info.getUrl()) &&
|
||||
getThumbnailUrl().equals(info.getThumbnailUrl());
|
||||
}
|
||||
return returnMe;
|
||||
getThumbnailUrl().equals(info.getThumbnailUrl());
|
||||
}
|
||||
|
||||
public long getUid() {
|
||||
|
|
Loading…
Reference in New Issue