hide trailing hashtags when post is collapsed (#4839)

closes https://github.com/tuskyapp/Tusky/issues/4838
This commit is contained in:
Konrad Pozniak 2024-12-31 09:55:30 +01:00 committed by GitHub
parent f501840411
commit 560411c5d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -287,6 +287,9 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
if (expanded) {
CharSequence emojifiedText = CustomEmojiHelper.emojify(content, emojis, this.content, statusDisplayOptions.animateEmojis());
LinkHelper.setClickableText(this.content, emojifiedText, mentions, tags, listener, this.trailingHashtagView);
if (trailingHashtagView != null && status.isCollapsible() && status.isCollapsed()) {
trailingHashtagView.setVisibility(View.GONE);
}
for (int i = 0; i < mediaLabels.length; ++i) {
updateMediaLabel(i, sensitive, true);
}