diff options
author | Borjan Tchakaloff <borjan@tchakaloff.fr> | 2019-03-25 15:41:39 +0100 |
---|---|---|
committer | Borjan Tchakaloff <borjan@tchakaloff.fr> | 2019-03-25 15:41:39 +0100 |
commit | 8172d87477dd593745d4776417ef3dd7884d17fb (patch) | |
tree | dc1e535927fe12e9d4b7ed15f232e343d6ba1ad1 /core/src/main/java | |
parent | 3e2efea0e76fd03614f95a255520e731b1792782 (diff) | |
download | AntennaPod-8172d87477dd593745d4776417ef3dd7884d17fb.zip |
Do not reset item "played" flag on media download
If an item has already been played, downloading its media will not
reset that "played" flag.
Fixes: #3067
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java | 2 |
1 files changed, 1 insertions, 1 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 39994ec16..84346e2d4 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 @@ -594,7 +594,7 @@ public class FeedMedia extends FeedFile implements Playable { @Override public void setDownloaded(boolean downloaded) { super.setDownloaded(downloaded); - if(item != null && downloaded) { + if(item != null && downloaded && !item.isPlayed()) { item.setPlayed(false); } } |