aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAidan223 <110802888+Aidan223@users.noreply.github.com>2022-11-13 02:56:58 +0000
committerGitHub <noreply@github.com>2022-11-13 02:56:58 +0000
commitcb7805c7a7f7fafb30f4e847b036d22a18bbf04c (patch)
treec569f8fbdb0fd856a4980e6ffc21dc48b39522b2 /app/src/main
parentb85ed3c867f0c3a2ca0d90e4c29d54ef38c976b5 (diff)
downloadinfinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar.gz
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar.bz2
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar.lz
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar.xz
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.tar.zst
infinity-for-reddit-cb7805c7a7f7fafb30f4e847b036d22a18bbf04c.zip
Fixed issue where filters applied to same feed were behaving incorrectly (#1172)
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/postfilter/PostFilter.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/postfilter/PostFilter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/postfilter/PostFilter.java
index a22ad6fd..464b6d9f 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/postfilter/PostFilter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/postfilter/PostFilter.java
@@ -357,12 +357,12 @@ public class PostFilter implements Parcelable {
postFilter.containDomains = stringBuilder.toString();
}
- postFilter.containTextType = p.containTextType || postFilter.containTextType;
- postFilter.containLinkType = p.containLinkType || postFilter.containLinkType;
- postFilter.containImageType = p.containImageType || postFilter.containImageType;
- postFilter.containGifType = p.containGifType || postFilter.containGifType;
- postFilter.containVideoType = p.containVideoType || postFilter.containVideoType;
- postFilter.containGalleryType = p.containGalleryType || postFilter.containGalleryType;
+ postFilter.containTextType = p.containTextType && postFilter.containTextType;
+ postFilter.containLinkType = p.containLinkType && postFilter.containLinkType;
+ postFilter.containImageType = p.containImageType && postFilter.containImageType;
+ postFilter.containGifType = p.containGifType && postFilter.containGifType;
+ postFilter.containVideoType = p.containVideoType && postFilter.containVideoType;
+ postFilter.containGalleryType = p.containGalleryType && postFilter.containGalleryType;
}
return postFilter;