From cb7805c7a7f7fafb30f4e847b036d22a18bbf04c Mon Sep 17 00:00:00 2001 From: Aidan223 <110802888+Aidan223@users.noreply.github.com> Date: Sun, 13 Nov 2022 13:56:58 +1100 Subject: Fixed issue where filters applied to same feed were behaving incorrectly (#1172) --- .../infinityforreddit/postfilter/PostFilter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app') 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; -- cgit v1.2.3