From e3df5ce0a87824f8e48989a0879de4082d3c9d32 Mon Sep 17 00:00:00 2001 From: Jacocococo Date: Thu, 22 Aug 2024 14:01:35 +0200 Subject: [PATCH] Properly set emoji reactions padding --- .../ui/displayitems/EmojiReactionsStatusDisplayItem.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/EmojiReactionsStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/EmojiReactionsStatusDisplayItem.java index 42124bd34..24119dcde 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/EmojiReactionsStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/EmojiReactionsStatusDisplayItem.java @@ -208,6 +208,14 @@ public class EmojiReactionsStatusDisplayItem extends StatusDisplayItem { updateVisibility(item.isHidden(), true); imgLoader.updateImages(); adapter.notifyDataSetChanged(); + + if(!GlobalUserPreferences.showDividers || item.isHidden()) + return; + + StatusDisplayItem next=getNextVisibleDisplayItem().orElse(null); + if(next!=null && !next.parentID.equals(item.parentID)) next=null; + if(next instanceof ExtendedFooterStatusDisplayItem) + itemView.setPadding(0, 0, 0, V.dp(12)); } private void updateVisibility(boolean hidden, boolean force){