From 61323e0d2efa1ae0ba5fad2b5f713224a8e60761 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Jan 2022 14:27:39 +0100 Subject: [PATCH] Smaller date header size when zooming --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 6dd12e0795..2d54df1a09 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -789,7 +789,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. } if (dh) { - tvDate.setTextSize(TypedValue.COMPLEX_UNIT_PX, Helper.getTextSize(parent.getContext(), adapter.getZoom())); + int zoom = adapter.getZoom(); + if (zoom > 0) + zoom--; + tvDate.setTextSize(TypedValue.COMPLEX_UNIT_PX, Helper.getTextSize(parent.getContext(), zoom)); if (date_bold) tvDate.setTypeface(Typeface.DEFAULT_BOLD);