diff options
Diffstat (limited to 'model/src')
-rw-r--r-- | model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java index 235c3fb8a..460f50f88 100644 --- a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java +++ b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java @@ -248,6 +248,9 @@ public class FeedItem extends FeedComponent implements Serializable { return state == NEW; } + public int getPlayState() { + return state; + } public void setNew() { state = NEW; @@ -377,6 +380,10 @@ public class FeedItem extends FeedComponent implements Serializable { return failedAttempts; } + public boolean isDownloaded() { + return media != null && media.isDownloaded(); + } + public boolean isAutoDownloadable() { if (media == null || media.isDownloaded() || autoDownload == 0) { return false; |