From a38f6ce93fb088d194b026c83e39e4a0b5f3891d Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 17 Dec 2024 20:04:06 +0100 Subject: [PATCH] prefer vertical format for cards with square images --- .../com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java index 9efafd6812..fc7e88133f 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java @@ -1210,7 +1210,7 @@ protected void setupCard( int radius = context.getResources().getDimensionPixelSize(R.dimen.inner_card_radius); ShapeAppearanceModel.Builder cardImageShape = ShapeAppearanceModel.builder(); - if (card.getWidth() > card.getHeight()) { + if (card.getWidth() >= card.getHeight()) { cardLayout.setOrientation(LinearLayout.VERTICAL); cardImage.getLayoutParams().height = cardImage.getContext().getResources() .getDimensionPixelSize(R.dimen.card_image_vertical_height);