Skip to content

Commit

Permalink
fix spacing between text and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Aug 24, 2023
1 parent bb03342 commit bdf0f21
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,10 @@ public void onError(ErrorResponse error) {
next=displayItems.size() > ++nextPos ? displayItems.get(nextPos) : null;
}

if(next instanceof FooterStatusDisplayItem){
bottomPadding=V.dp(6);
// why does java code always end up looking like this
} else if((!item.inset && next instanceof DummyStatusDisplayItem) ||
next instanceof EmojiReactionsStatusDisplayItem e && !e.isHidden()){
bottomPadding=0;
}
if(next instanceof FooterStatusDisplayItem
|| (!item.inset && next instanceof DummyStatusDisplayItem)
|| next instanceof EmojiReactionsStatusDisplayItem e && !e.isHidden()
) bottomPadding=0;
}
itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding);

Expand Down

0 comments on commit bdf0f21

Please sign in to comment.