diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java index 674ef189e..9247eccaa 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java @@ -17,6 +17,7 @@ import org.joinmastodon.android.model.Status; import org.joinmastodon.android.model.StatusContext; import org.joinmastodon.android.ui.displayitems.ExtendedFooterStatusDisplayItem; import org.joinmastodon.android.ui.displayitems.FooterStatusDisplayItem; +import org.joinmastodon.android.ui.displayitems.SpoilerStatusDisplayItem; import org.joinmastodon.android.ui.displayitems.StatusDisplayItem; import org.joinmastodon.android.ui.displayitems.TextStatusDisplayItem; import org.joinmastodon.android.ui.text.HtmlParser; @@ -61,6 +62,12 @@ public class ThreadFragment extends StatusListFragment{ text.textSelectable=true; else if(item instanceof FooterStatusDisplayItem footer) footer.hideCounts=true; + else if(item instanceof SpoilerStatusDisplayItem spoiler){ + for(StatusDisplayItem subItem:spoiler.contentItems){ + if(subItem instanceof TextStatusDisplayItem text) + text.textSelectable=true; + } + } } items.add(new ExtendedFooterStatusDisplayItem(s.id, this, s.getContentStatus())); }