1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 09:16:00 +00:00

Use fixed action bar height

This commit is contained in:
M66B 2024-06-05 17:20:21 +02:00
parent 0c770ff07b
commit 44d96d1ca9

View file

@ -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) {