only use TextUtils.equals (fixes more crashes)

This commit is contained in:
Peter Hindes 2019-10-15 17:22:17 -06:00
parent 797e1a105d
commit ad2de3a828
1 changed files with 6 additions and 3 deletions

View File

@ -83,9 +83,12 @@ public class PlaylistRemoteEntity implements PlaylistLocalItem {
* (False if info changed such as playlist name or track count)
*/
//boolean returnMe = true;
return getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
getStreamCount() == info.getStreamCount() && getUrl().equals(info.getUrl()) &&
getThumbnailUrl().equals(info.getThumbnailUrl()) && TextUtils.equals(getUploader(), info.getUploaderName());
return getServiceId() == info.getServiceId()
&& getStreamCount() == info.getStreamCount()
&& TextUtils.equals(getName(), info.getName())
&& TextUtils.equals(getUrl(), info.getUrl())
&& TextUtils.equals(getThumbnailUrl(), info.getThumbnailUrl())
&& TextUtils.equals(getUploader(), info.getUploaderName());
//if (DEBUG) Log.d(TAG, TAG+"() called with result: returnMe = "+returnMe);
//return returnMe;
}