mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +02:00
Fix #39 - Font size keeps increasing
This commit is contained in:
parent
0f4408ba95
commit
0542aaa07c
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,8 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
}
|
||||
}
|
||||
if (status.isFocused) {
|
||||
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
||||
holder.binding.spoiler.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue