Fixed issue where filters applied to same feed were behaving incorrectly (#1172)

This commit is contained in:
Aidan223 2022-11-13 13:56:58 +11:00 committed by GitHub
parent b85ed3c867
commit cb7805c7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;