From 98adcc1abdb51e2bdf7a382b9327b2dda672a306 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 25 Feb 2025 10:35:54 +0100 Subject: [PATCH] Fix issue with names not displayed fully --- .../ui/drawer/NotificationAdapter.java | 20 ++++++++++++------- .../mastodon/ui/drawer/StatusAdapter.java | 2 +- .../layouts/mastodon/layout/drawer_status.xml | 4 ++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java index f37fe5bb..76f5d172 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java @@ -382,19 +382,22 @@ public class NotificationAdapter extends RecyclerView.Adapter { Intent intent = new Intent(context, ProfileActivity.class); @@ -425,11 +428,14 @@ public class NotificationAdapter extends RecyclerView.Adapter holder.binding.pronouns.setVisibility(View.VISIBLE); holder.binding.pronouns.setText(statusToDeal.pronouns); } else { - holder.binding.pronouns.setVisibility(View.INVISIBLE); + holder.binding.pronouns.setVisibility(View.GONE); } if (statusToDeal.quote != null && (statusToDeal.spoiler_text == null || statusToDeal.spoiler_text.trim().isEmpty() || statusToDeal.isExpended)) { holder.binding.quotedMessage.cardviewContainer.setCardElevation((int) Helper.convertDpToPixel(5, context)); diff --git a/app/src/main/res/layouts/mastodon/layout/drawer_status.xml b/app/src/main/res/layouts/mastodon/layout/drawer_status.xml index 0328d756..cb178842 100644 --- a/app/src/main/res/layouts/mastodon/layout/drawer_status.xml +++ b/app/src/main/res/layouts/mastodon/layout/drawer_status.xml @@ -168,9 +168,9 @@ app:layout_constraintStart_toEndOf="@+id/display_name" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@+id/date_short_container" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="6dp" + android:layout_marginHorizontal="3dp" android:visibility="invisible" tools:visibility="visible" android:textColor="?colorPrimary"