From a9c6bf24fd3a0c97c701efedefbe3ee8522665b2 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 17 Mar 2024 20:16:14 -0300 Subject: [PATCH] fix(avatar-span): make the avatar appear more centered relative to the rest of the text --- .../main/java/org/joinmastodon/android/ui/text/AvatarSpan.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/text/AvatarSpan.java b/mastodon/src/main/java/org/joinmastodon/android/ui/text/AvatarSpan.java index 1fdbcb06d..bb766ef73 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/text/AvatarSpan.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/text/AvatarSpan.java @@ -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();