Skip to content

Commit

Permalink
fix(avatar-span): don´t check for handleClick to be null
Browse files Browse the repository at this point in the history
This makes it so the avatar span is always shown, even when handleClick is null
  • Loading branch information
LucasGGamerM committed Mar 19, 2024
1 parent 44b9f8c commit 2497ece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ReblogOrReplyLineStatusDisplayItem(String parentID, BaseStatusListFragmen
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);
Expand Down

0 comments on commit 2497ece

Please sign in to comment.