From 0788a4ad7467dc6f70a3f652591e71d001af839b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 7 Nov 2021 09:33:00 +0100 Subject: [PATCH] Zoom replied-to text --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index c716d6311e..15b2d2a93c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1820,12 +1820,13 @@ public class FragmentCompose extends FragmentBase { } private void setZoom() { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + final Context context = getContext(); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); int message_zoom = prefs.getInt("message_zoom", 100); - float textSize = Helper.getTextSize(getContext(), zoom); + float textSize = Helper.getTextSize(context, zoom); if (textSize != 0) { etBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * message_zoom / 100f); - tvReference.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); + tvReference.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * message_zoom / 100f); } }