fix #32 - Fix issue with text size in thread when scrolling

This commit is contained in:
Thomas 2022-05-06 17:16:37 +02:00
parent 9d11ccc382
commit 48441bcc33

View file

@ -294,6 +294,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
float currentTextSize = holder.binding.statusContent.getTextSize();
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
holder.binding.spoiler.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
} else {
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.width > status.card.height) {