mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #105 - Display cards having no descriptions
This commit is contained in:
parent
7e4c043711
commit
35bfc79c21
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
||||
holder.binding.spoiler.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
||||
}
|
||||
if (status.card != null && (display_card || status.isFocused) & status.card.description.trim().length() > 0) {
|
||||
if (status.card != null && (display_card || status.isFocused)) {
|
||||
if (status.card.width > status.card.height) {
|
||||
holder.binding.cardImageHorizontal.setVisibility(View.VISIBLE);
|
||||
holder.binding.cardImageVertical.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in a new issue