summaryrefslogtreecommitdiff
path: root/storage/database
diff options
context:
space:
mode:
authorErik Johnson <palehose@gmail.com>2022-09-18 11:03:10 -0500
committerGitHub <noreply@github.com>2022-09-18 18:03:10 +0200
commitfcce8e9e0eeb73d9f6a9a885787af2bc72698e90 (patch)
tree83a0252371bfffc95abc5d1f798d8bdc91018db3 /storage/database
parent6940c1a3c5053c943eeebaea5932523a2e021d0f (diff)
downloadAntennaPod-fcce8e9e0eeb73d9f6a9a885787af2bc72698e90.zip
Implement "Downloaded and unplayed" subscription counter option (#6073)
Diffstat (limited to 'storage/database')
-rw-r--r--storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
index 3cf7e37dc..9798a9fb3 100644
--- a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
+++ b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
@@ -1281,6 +1281,11 @@ public class PodDBAdapter {
case SHOW_DOWNLOADED:
whereRead = KEY_DOWNLOADED + "=1";
break;
+ case SHOW_DOWNLOADED_UNPLAYED:
+ whereRead = "(" + KEY_READ + "=" + FeedItem.NEW
+ + " OR " + KEY_READ + "=" + FeedItem.UNPLAYED + ")"
+ + " AND " + KEY_DOWNLOADED + "=1";
+ break;
case SHOW_NONE:
// deliberate fall-through
default: // NONE