From d36ad43700c0958860177b76675f0ed117d11508 Mon Sep 17 00:00:00 2001 From: sk Date: Mon, 28 Aug 2023 22:26:53 +0200 Subject: [PATCH] fix reporting crashing the app --- .../ui/displayitems/StatusDisplayItem.java | 2 +- .../layout/display_item_header_checkable.xml | 94 +++++-------------- .../res/layout/fragment_report_comment.xml | 44 --------- 3 files changed, 23 insertions(+), 117 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index cdc569f8a..810c55b19 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -306,7 +306,7 @@ public abstract class StatusDisplayItem{ int i=1; boolean inset=(flags & FLAG_INSET)!=0; // add inset dummy so last content item doesn't clip out of inset bounds - if(inset || footer==null){ + if((inset || footer==null) && (flags & FLAG_CHECKABLE)==0){ items.add(new DummyStatusDisplayItem(parentID, fragment)); // in case we ever need the dummy to display a margin for the media grid again: // (i forgot why we apparently don't need this anymore) diff --git a/mastodon/src/main/res/layout/display_item_header_checkable.xml b/mastodon/src/main/res/layout/display_item_header_checkable.xml index 410011ef2..7b51fa150 100644 --- a/mastodon/src/main/res/layout/display_item_header_checkable.xml +++ b/mastodon/src/main/res/layout/display_item_header_checkable.xml @@ -8,83 +8,33 @@ android:paddingLeft="16dp" android:clipToPadding="false"> - + - + - + - + android:layout_height="wrap_content" + android:layout_marginTop="-16dp" + android:layout_marginStart="-16dp" + android:layout_toEndOf="@id/checkbox_wrap"> - + - - - - - + \ No newline at end of file diff --git a/mastodon/src/main/res/layout/fragment_report_comment.xml b/mastodon/src/main/res/layout/fragment_report_comment.xml index 9ff461272..29364afb6 100644 --- a/mastodon/src/main/res/layout/fragment_report_comment.xml +++ b/mastodon/src/main/res/layout/fragment_report_comment.xml @@ -91,50 +91,6 @@ - - - - - - - - - -