mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-01 05:10:09 +02:00
Ensure the height of the toolbar is set
This commit is contained in:
@@ -920,7 +920,8 @@ public class Helper {
|
||||
if (context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
|
||||
DisplayMetrics dm = context.getResources().getDisplayMetrics();
|
||||
actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, dm);
|
||||
} else
|
||||
}
|
||||
if (actionBarHeight == null || actionBarHeight <= 0)
|
||||
actionBarHeight = Helper.dp2pixels(context, 56);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user