Properly set emoji reactions padding

This commit is contained in:
Jacocococo 2024-08-22 14:01:35 +02:00
parent fcf7665ab5
commit e3df5ce0a8
1 changed files with 8 additions and 0 deletions

View File

@ -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){