summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hennen <TomHennen@users.noreply.github.com>2016-01-26 17:32:03 -0500
committerTom Hennen <TomHennen@users.noreply.github.com>2016-01-26 17:32:03 -0500
commit056c1bf29a9ab54e6741685bd54ce7d777f34827 (patch)
treec7451bf26a050456479d92708ff6b09a1aec9bb0
parentf9afe0d488bdb14798136fa183cb5831329b7cde (diff)
parent5e8c62ec75b6ffd82796cdb0a7c245f9f43eb900 (diff)
downloadAntennaPod-056c1bf29a9ab54e6741685bd54ce7d777f34827.zip
Merge pull request #1618 from mfietz/issue/1616-redownloaded
Only reset episode to new if feed item did not link to a file before
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java
index ae22d5460..56b996d1c 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java
@@ -168,9 +168,8 @@ public class FeedMedia extends FeedFile implements Playable {
}
public void updateFromOther(FeedMedia other) {
- // we try to cover two cases: (1) feed did include file before (2) feed contained wrong URL
- // if item.getAutoDownload() is false, the file has been downloaded before
- if((TextUtils.isEmpty(download_url) || item.getAutoDownload()) && !TextUtils.isEmpty(other.download_url)) {
+ // reset to new if feed item did link to a file before
+ if(TextUtils.isEmpty(download_url) && !TextUtils.isEmpty(other.download_url)) {
item.setNew();
}
super.updateFromOther(other);