From 2497ece9f15a8a75b1c8483b9a13d9c40121a748 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 19 Mar 2024 14:30:27 -0300 Subject: [PATCH] =?UTF-8?q?fix(avatar-span):=20don=C2=B4t=20check=20for=20?= =?UTF-8?q?handleClick=20to=20be=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it so the avatar span is always shown, even when handleClick is null --- .../ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java index 902999d03..26779c663 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ReblogOrReplyLineStatusDisplayItem.java @@ -59,7 +59,7 @@ public class ReblogOrReplyLineStatusDisplayItem extends StatusDisplayItem{ HtmlParser.parseCustomEmoji(ssb, emojis); //this is fine, since the display name is surround by '\u2068' and '\u2069' int nameLoc=account!=null ? text.toString().indexOf(account.getDisplayName()) : -1; - if(nameLoc!=-1&&ssb.length()>=nameLoc&&handleClick!=null){ + if(nameLoc!=-1&&ssb.length()>=nameLoc){ //add temp chars for span replacement, length should be the same as the amount of spans replacing below ssb.insert(nameLoc, " "); ssb.setSpan(new SpacerSpan(15, 20), nameLoc+1, nameLoc+2, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);