Fix issue #105 - Display cards having no descriptions

This commit is contained in:
Thomas 2022-05-28 18:05:28 +02:00
parent 7e4c043711
commit 35bfc79c21

View file

@ -347,7 +347,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14); holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
holder.binding.spoiler.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) { if (status.card.width > status.card.height) {
holder.binding.cardImageHorizontal.setVisibility(View.VISIBLE); holder.binding.cardImageHorizontal.setVisibility(View.VISIBLE);
holder.binding.cardImageVertical.setVisibility(View.GONE); holder.binding.cardImageVertical.setVisibility(View.GONE);