mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-08 00:26:50 +02:00
Use fixed action bar height
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user