From b8dccbbef1680d155b08dbb020d8766da9332ede Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 18 Oct 2023 19:23:13 +0200 Subject: [PATCH] now hopefully fixing header/subtitle extra sizing --- .../android/ui/views/HeaderSubtitleLinearLayout.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/views/HeaderSubtitleLinearLayout.java b/mastodon/src/main/java/org/joinmastodon/android/ui/views/HeaderSubtitleLinearLayout.java index c45fd36643..fa10d69c6e 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/views/HeaderSubtitleLinearLayout.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/views/HeaderSubtitleLinearLayout.java @@ -27,7 +27,8 @@ public HeaderSubtitleLinearLayout(Context context, AttributeSet attrs, int defSt @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ if(getLayoutChildCount()>1){ - int remainingWidth=MeasureSpec.getSize(widthMeasureSpec); + int fullWidth=MeasureSpec.getSize(widthMeasureSpec); + int remainingWidth=fullWidth; for(int i=1;i