From e9cc9be5c2f85440176ea6441c929c4696834567 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 17 Dec 2024 21:02:08 +0100 Subject: [PATCH] Revert "prefer vertical format for cards with square images" This reverts commit a38f6ce93fb088d194b026c83e39e4a0b5f3891d. --- .../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 fc7e88133..9efafd681 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 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder { 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);