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:
parent
0c770ff07b
commit
44d96d1ca9
1 changed files with 1 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue