From a43b2e8f525c627a858ea8e7af1f63f5516ac2d5 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Wed, 17 Jul 2024 21:44:44 -0400 Subject: Fix filtered out comments not collapsed when display mode in comment filter is set to fully collapse comments. --- .../main/java/ml/docilealligator/infinityforreddit/comment/Comment.java | 2 +- .../java/ml/docilealligator/infinityforreddit/comment/ParseComment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/comment/Comment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/comment/Comment.java index c838e32e..2a1f23f4 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/comment/Comment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/comment/Comment.java @@ -313,7 +313,7 @@ public class Comment implements Parcelable { } public void setIsFilteredOut(boolean isFilteredOut) { - this.isExpanded = isFilteredOut; + this.isFilteredOut = isFilteredOut; } public int getVoteType() { diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/comment/ParseComment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/comment/ParseComment.java index 1593d29d..3e0f526d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/comment/ParseComment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/comment/ParseComment.java @@ -210,9 +210,9 @@ public class ParseComment { singleComment.addChildren(children); singleComment.setMoreChildrenIds(nextMoreChildrenIds); singleComment.setChildCount(getChildCount(singleComment)); - singleComment.setIsFilteredOut(isFilteredOut); } + singleComment.setIsFilteredOut(isFilteredOut); newCommentData.add(singleComment); } } -- cgit v1.2.3