Fix deleting downloaded episode removes from queue (#7151)
This commit is contained in:
parent
b877344a7e
commit
3ed5b8af8c
@ -171,6 +171,9 @@ public class FeedItem implements Serializable {
|
|||||||
|
|
||||||
public void setId(long id) {
|
public void setId(long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
if (this.media != null) {
|
||||||
|
media.setItemId(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,6 +58,7 @@ public class FeedMedia implements Playable {
|
|||||||
this.downloadUrl = downloadUrl;
|
this.downloadUrl = downloadUrl;
|
||||||
this.downloaded = false;
|
this.downloaded = false;
|
||||||
this.item = i;
|
this.item = i;
|
||||||
|
this.itemID = i != null ? i.getId() : 0;
|
||||||
this.size = size;
|
this.size = size;
|
||||||
this.mimeType = mimeType;
|
this.mimeType = mimeType;
|
||||||
}
|
}
|
||||||
@ -71,6 +72,7 @@ public class FeedMedia implements Playable {
|
|||||||
this.downloaded = downloaded;
|
this.downloaded = downloaded;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.item = item;
|
this.item = item;
|
||||||
|
this.itemID = item != null ? item.getId() : 0;
|
||||||
this.duration = duration;
|
this.duration = duration;
|
||||||
this.position = position;
|
this.position = position;
|
||||||
this.playedDuration = playedDuration;
|
this.playedDuration = playedDuration;
|
||||||
@ -251,6 +253,7 @@ public class FeedMedia implements Playable {
|
|||||||
*/
|
*/
|
||||||
public void setItem(FeedItem item) {
|
public void setItem(FeedItem item) {
|
||||||
this.item = item;
|
this.item = item;
|
||||||
|
this.itemID = item != null ? item.getId() : 0;
|
||||||
if (item != null && item.getMedia() != this) {
|
if (item != null && item.getMedia() != this) {
|
||||||
item.setMedia(this);
|
item.setMedia(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user