mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-02-09 16:48:43 +01:00
Fix #39 - Font size keeps increasing
This commit is contained in:
parent
0f4408ba95
commit
0542aaa07c
@ -299,6 +299,8 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status.isFocused) {
|
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();
|
float currentTextSize = holder.binding.statusContent.getTextSize();
|
||||||
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
|
holder.binding.statusContent.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
|
||||||
holder.binding.spoiler.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
|
holder.binding.spoiler.setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize * 1.3f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user