mirror of
https://github.com/tuskyapp/Tusky
synced 2024-12-31 19:17:51 +01:00
Revert "prefer vertical format for cards with square images"
This reverts commit a38f6ce93f
.
This commit is contained in:
parent
a38f6ce93f
commit
e9cc9be5c2
@ -1210,7 +1210,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||||||
int radius = context.getResources().getDimensionPixelSize(R.dimen.inner_card_radius);
|
int radius = context.getResources().getDimensionPixelSize(R.dimen.inner_card_radius);
|
||||||
ShapeAppearanceModel.Builder cardImageShape = ShapeAppearanceModel.builder();
|
ShapeAppearanceModel.Builder cardImageShape = ShapeAppearanceModel.builder();
|
||||||
|
|
||||||
if (card.getWidth() >= card.getHeight()) {
|
if (card.getWidth() > card.getHeight()) {
|
||||||
cardLayout.setOrientation(LinearLayout.VERTICAL);
|
cardLayout.setOrientation(LinearLayout.VERTICAL);
|
||||||
cardImage.getLayoutParams().height = cardImage.getContext().getResources()
|
cardImage.getLayoutParams().height = cardImage.getContext().getResources()
|
||||||
.getDimensionPixelSize(R.dimen.card_image_vertical_height);
|
.getDimensionPixelSize(R.dimen.card_image_vertical_height);
|
||||||
|
Loading…
Reference in New Issue
Block a user