Merge pull request #1799 from mfietz/issue/1796-update-feed
Fix feed refresh issue
This commit is contained in:
commit
a994cd4c08
@ -324,12 +324,11 @@ public class Feed extends FeedFile implements FlattrThing, ImageResource {
|
||||
if (super.compareWithOther(other)) {
|
||||
return true;
|
||||
}
|
||||
if (!title.equals(other.title)) {
|
||||
if (!TextUtils.equals(title, other.title)) {
|
||||
return true;
|
||||
}
|
||||
if (other.feedIdentifier != null) {
|
||||
if (feedIdentifier == null
|
||||
|| !feedIdentifier.equals(other.feedIdentifier)) {
|
||||
if (feedIdentifier == null || !feedIdentifier.equals(other.feedIdentifier)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package de.danoeh.antennapod.core.feed;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
@ -54,7 +56,7 @@ public abstract class FeedFile extends FeedComponent {
|
||||
if (super.compareWithOther(other)) {
|
||||
return true;
|
||||
}
|
||||
if (!download_url.equals(other.download_url)) {
|
||||
if (!TextUtils.equals(download_url, other.download_url)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -95,8 +95,9 @@ public class FeedPreferences {
|
||||
* @return True if the two objects are different.
|
||||
*/
|
||||
public boolean compareWithOther(FeedPreferences other) {
|
||||
if (other == null)
|
||||
if (other == null) {
|
||||
return true;
|
||||
}
|
||||
if (!TextUtils.equals(username, other.username)) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user