From 44d96d1ca99e390ff264f27e24f872ea44cc724b Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 5 Jun 2024 17:20:21 +0200 Subject: [PATCH] Use fixed action bar height --- app/src/main/java/eu/faircode/email/Helper.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 650b035ddc..b18363ab8b 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -919,20 +919,8 @@ public class Helper { // View - static Integer actionBarHeight = null; - static int getActionBarHeight(Context context) { - if (actionBarHeight == null) { - TypedValue tv = new TypedValue(); - if (context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) { - DisplayMetrics dm = context.getResources().getDisplayMetrics(); - actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, dm); - } - if (actionBarHeight == null || actionBarHeight <= 0) - actionBarHeight = Helper.dp2pixels(context, 56); - } - - return actionBarHeight; + return Helper.dp2pixels(context, 56); } static int getBottomNavigationHeight(Context context) {