diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-09-18 22:25:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 22:25:06 +0200 |
commit | 097a4915044247d3e121069013491c35aaf16f89 (patch) | |
tree | 7e75d6a5254dfbda0d8073365068318eeab59dcf /model/src | |
parent | bd0f54dbf6b615c5b4098de35811c4c2d69cfb1e (diff) | |
download | AntennaPod-097a4915044247d3e121069013491c35aaf16f89.zip |
Rewrite include/exclude filter dialog (#6057)
Diffstat (limited to 'model/src')
-rw-r--r-- | model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java index 3b35fe5bd..f537f33e2 100644 --- a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java +++ b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java @@ -102,14 +102,22 @@ public class FeedFilter implements Serializable { return false; } - public String getIncludeFilter() { + public String getIncludeFilterRaw() { return includeFilter; } - public String getExcludeFilter() { + public String getExcludeFilterRaw() { return excludeFilter; } + public List<String> getIncludeFilter() { + return includeFilter == null ? new ArrayList<>() : parseTerms(includeFilter); + } + + public List<String> getExcludeFilter() { + return excludeFilter == null ? new ArrayList<>() : parseTerms(excludeFilter); + } + public int getMinimalDurationFilter() { return minimalDuration; } |