From 962c094f7e3162263d19a7974535ddbfd2c9a36f Mon Sep 17 00:00:00 2001 From: Jacocococo Date: Fri, 29 Dec 2023 23:34:40 +0100 Subject: [PATCH] Properly hide content warning in quoted post --- .../joinmastodon/android/fragments/BaseStatusListFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java index a48e055e8..b7b4809fb 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java @@ -619,6 +619,8 @@ public abstract class BaseStatusListFragment exten displayItems.addAll(index+1, spoilerItem.contentItems); adapter.notifyItemRangeInserted(index+1, spoilerItem.contentItems.size()); }else{ + if(spoilers.size()>1 && !isForQuote && status.quote.spoilerRevealed) + toggleSpoiler(status.quote, true, itemID); displayItems.subList(index+1, index+1+spoilerItem.contentItems.size()).clear(); adapter.notifyItemRangeRemoved(index+1, spoilerItem.contentItems.size()); }