From 0542aaa07cf520187db2cfd3f8f2d57b3ad3dec4 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 8 May 2022 15:36:10 +0200 Subject: [PATCH] Fix #39 - Font size keeps increasing --- .../main/java/app/fedilab/android/ui/drawer/StatusAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index f5d6afd5..1601e32e 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -299,6 +299,8 @@ public class StatusAdapter extends RecyclerView.Adapter } } 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);