diff options
author | mueller-ma <mueller-ma@users.noreply.github.com> | 2023-05-05 17:22:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 17:22:31 +0200 |
commit | aab19f3a5c35a30847cf6b3f50680a0269e795df (patch) | |
tree | 232aa0c7b1673ae64055608f0b90acdf208570e7 /core/src/test/java/de/danoeh | |
parent | e2bbc3ef17687cfaa4c6a02507ed1cfd77665d37 (diff) | |
download | AntennaPod-aab19f3a5c35a30847cf6b3f50680a0269e795df.zip |
Ignore subscription filter when suggesting tags (#6453)
I have the following setup:
* A tag 'Done' with fully listened podcasts
* The subscription filter "counter greater 0"
* The subscription counter "downloaded episodes"
This way all done podcasts aren't visible in the drawer. When I want to
tag another podcast as done, 'Done' isn't auto-completed. With this
change all tags will be auto-completed.
Diffstat (limited to 'core/src/test/java/de/danoeh')
-rw-r--r-- | core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java index 3fadf7528..b67bc48ea 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/DbReaderTest.java @@ -330,7 +330,7 @@ public class DbReaderTest { final int numFeeds = 10; final int numItems = 10; DbTestUtils.saveFeedlist(numFeeds, numItems, true); - NavDrawerData navDrawerData = DBReader.getNavDrawerData(); + NavDrawerData navDrawerData = DBReader.getNavDrawerData(UserPreferences.getSubscriptionsFilter()); assertEquals(numFeeds, navDrawerData.items.size()); assertEquals(0, navDrawerData.numNewItems); assertEquals(0, navDrawerData.queueSize); @@ -359,7 +359,7 @@ public class DbReaderTest { adapter.close(); - NavDrawerData navDrawerData = DBReader.getNavDrawerData(); + NavDrawerData navDrawerData = DBReader.getNavDrawerData(UserPreferences.getSubscriptionsFilter()); assertEquals(numFeeds, navDrawerData.items.size()); assertEquals(numNew, navDrawerData.numNewItems); assertEquals(numQueue, navDrawerData.queueSize); |