mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
fix #32 - Fix issue with text size in thread when scrolling
This commit is contained in:
parent
9d11ccc382
commit
48441bcc33
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue