mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Ensure the height of the toolbar is set
This commit is contained in:
@@ -117,6 +117,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
Toolbar toolbar = holder.findViewById(R.id.toolbar);
|
||||
View placeholder = holder.findViewById(R.id.placeholder);
|
||||
|
||||
ViewGroup.LayoutParams lp = toolbar.getLayoutParams();
|
||||
lp.height = Helper.getActionBarHeight(this);
|
||||
toolbar.setLayoutParams(lp);
|
||||
|
||||
toolbar.setPopupTheme(getThemeId());
|
||||
if (hide_toolbar) {
|
||||
AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbar.getLayoutParams();
|
||||
|
||||
Reference in New Issue
Block a user