From 68921d0f0b1b1a87108699ec8106eb2ff141ffa8 Mon Sep 17 00:00:00 2001 From: sk Date: Tue, 6 Jun 2023 14:23:24 +0200 Subject: [PATCH] fix footer being too close to next header --- .../android/ui/displayitems/FooterStatusDisplayItem.java | 2 +- .../android/ui/displayitems/TextStatusDisplayItem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java index 93facae14..52c4d3726 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java @@ -144,7 +144,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) itemView.getLayoutParams(); params.setMargins(params.leftMargin, params.topMargin, params.rightMargin, - condenseBottom ? V.dp(-8) : 0); + condenseBottom ? V.dp(-5) : 0); itemView.requestLayout(); } 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 8154af905..33ded1cff 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 @@ -241,7 +241,7 @@ public class TextStatusDisplayItem extends StatusDisplayItem{ boolean nextIsFooter = item.parentFragment.getDisplayItems().size() > nextPos && item.parentFragment.getDisplayItems().get(nextPos) instanceof FooterStatusDisplayItem; int bottomPadding = (translateVisible && nextIsFooter) ? 0 - : nextIsFooter ? V.dp(8) + : nextIsFooter ? V.dp(6) : V.dp(12); itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding);