fix(avatar-span): don´t check for handleClick to be null

This makes it so the avatar span is always shown, even when handleClick is null
This commit is contained in:
LucasGGamerM 2024-03-19 14:30:27 -03:00
parent 44b9f8c0ec
commit 2497ece9f1
1 changed files with 1 additions and 1 deletions

View File

@ -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);