From 34c81cec767aefdd085fd00e4a60b55c6b588a2a Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 27 Feb 2023 10:24:13 +0100 Subject: [PATCH] Some updates --- .../mastodon/ui/drawer/StatusAdapter.java | 4 ++-- .../layouts/mastodon/layout/drawer_status.xml | 16 +++++++++++----- .../metadata/android/en/changelogs/481.txt | 8 ++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 src/fdroid/fastlane/metadata/android/en/changelogs/481.txt diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java index 956d5618d..9d4295655 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java @@ -446,9 +446,9 @@ public class StatusAdapter extends RecyclerView.Adapter LinearLayoutCompat.MarginLayoutParams pmc = (LinearLayoutCompat.MarginLayoutParams) holder.binding.mediaContainer.getLayoutParams(); pmc.setMarginStart((int) Helper.convertDpToPixel(6, context)); holder.binding.mediaContainer.setLayoutParams(pmc); - LinearLayoutCompat.MarginLayoutParams pal = (LinearLayoutCompat.MarginLayoutParams) holder.binding.media.mediaContainer.getLayoutParams(); + LinearLayoutCompat.MarginLayoutParams pal = (LinearLayoutCompat.MarginLayoutParams) holder.binding.mediaCroppedContainer.getLayoutParams(); pal.setMarginStart((int) Helper.convertDpToPixel(6, context)); - holder.binding.media.mediaContainer.setLayoutParams(pal); + holder.binding.mediaCroppedContainer.setLayoutParams(pal); LinearLayoutCompat.MarginLayoutParams pp = (LinearLayoutCompat.MarginLayoutParams) holder.binding.poll.pollContainer.getLayoutParams(); pp.setMarginStart((int) Helper.convertDpToPixel(6, context)); holder.binding.poll.pollContainer.setLayoutParams(pp); 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 1557e75e0..66ac2f484 100644 --- a/app/src/main/res/layouts/mastodon/layout/drawer_status.xml +++ b/app/src/main/res/layouts/mastodon/layout/drawer_status.xml @@ -457,15 +457,21 @@ android:visibility="gone" /> - + android:layout_marginEnd="6dp"> + + +