diff options
author | ueen <ueli.sarnighausen@online.de> | 2021-07-12 00:03:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 00:03:32 +0200 |
commit | ca9ad0d2d33ce8c4299525e32664da33e28b9d91 (patch) | |
tree | 8938c065f47726b6bb29e5ef83cf13d95144fb18 /model | |
parent | c1efd51be976e289dab59cd46b79bab9c79fcce6 (diff) | |
download | antennapod-ca9ad0d2d33ce8c4299525e32664da33e28b9d91.zip |
Swipe actions (#5191)
Diffstat (limited to 'model')
-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; |