summaryrefslogtreecommitdiff
path: root/storage/database
diff options
context:
space:
mode:
authorErik Johnson <palehose@gmail.com>2022-09-10 05:06:32 -0500
committerGitHub <noreply@github.com>2022-09-10 12:06:32 +0200
commit539d0c928d22a534eff08a35f0df1015c190284c (patch)
tree47c5f26df52e5616e5a087a11f88d86bf94f6ee6 /storage/database
parenta63948ec6d9f42ce1350c3e3a9a8233b1acbe431 (diff)
downloadAntennaPod-539d0c928d22a534eff08a35f0df1015c190284c.zip
Remove "inbox and unplayed" feed counter option (#6033)
Diffstat (limited to 'storage/database')
-rw-r--r--storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java7
1 files changed, 2 insertions, 5 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 bd0024042..3cf7e37dc 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
@@ -1271,15 +1271,12 @@ public class PodDBAdapter {
public final Map<Long, Integer> getFeedCounters(FeedCounter setting, long... feedIds) {
String whereRead;
switch (setting) {
- case SHOW_NEW_UNPLAYED_SUM:
- whereRead = "(" + KEY_READ + "=" + FeedItem.NEW +
- " OR " + KEY_READ + "=" + FeedItem.UNPLAYED + ")";
- break;
case SHOW_NEW:
whereRead = KEY_READ + "=" + FeedItem.NEW;
break;
case SHOW_UNPLAYED:
- whereRead = KEY_READ + "=" + FeedItem.UNPLAYED;
+ whereRead = "(" + KEY_READ + "=" + FeedItem.NEW
+ + " OR " + KEY_READ + "=" + FeedItem.UNPLAYED + ")";
break;
case SHOW_DOWNLOADED:
whereRead = KEY_DOWNLOADED + "=1";