From fb39f74ba5bfcf38356366b9c96c29caeb79fe53 Mon Sep 17 00:00:00 2001 From: sk Date: Mon, 28 Aug 2023 20:22:16 +0200 Subject: [PATCH] fix bottom padding for above emoji reactions --- .../android/ui/displayitems/TextStatusDisplayItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java index de09e45ab..abac9185b 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java @@ -198,8 +198,8 @@ public class TextStatusDisplayItem extends StatusDisplayItem{ if(next!=null && !next.parentID.equals(item.parentID)) next=null; int bottomPadding=next instanceof FooterStatusDisplayItem ? V.dp(6) : item.inset ? V.dp(12) - : next!=null ? V.dp(12) - : 0; + : (next instanceof EmojiReactionsStatusDisplayItem || next==null) ? 0 + : V.dp(12); itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding); if (!GlobalUserPreferences.collapseLongPosts) {