fix(avatar-span): make the avatar appear more centered relative to the rest of the text

This commit is contained in:
LucasGGamerM 2024-03-17 20:16:14 -03:00
parent ad4423526d
commit a9c6bf24fd
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public class AvatarSpan extends CustomEmojiSpan{
//modified draw of a CustomEmojiSpan, drawing a circular image instead.
if(drawable==null)
return;
top += 4;
int size=Math.round(paint.descent()-paint.ascent());
Rect bounds=drawable.getBounds();
int dw=drawable.getIntrinsicWidth();