1
0
mirror of https://github.com/tuskyapp/Tusky synced 2024-12-22 15:04:25 +01:00

Revert "prefer vertical format for cards with square images"

This reverts commit a38f6ce93f.
This commit is contained in:
Conny Duck 2024-12-17 21:02:08 +01:00
parent a38f6ce93f
commit e9cc9be5c2
No known key found for this signature in database

View File

@ -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);