From cc86edf2769b65fbe09c03ada7ec59dd8607c6ea Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 25 Sep 2023 17:18:42 +0300 Subject: [PATCH] Fix #700 --- .../org/joinmastodon/android/fragments/ThreadFragment.java | 7 +++++++ 1 file changed, 7 insertions(+) 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())); }