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
This commit is contained in:
Borjan Tchakaloff 2019-03-25 15:41:39 +01:00
parent 3e2efea0e7
commit 8172d87477
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}