Android Material 抽屉删除帐户 header 下拉列表

Android Material Drawer remove account header dropdwon

如何使用 Mike Penz 的 Material 抽屉库去掉显示 AccountHeader 关联账户的下拉菜单?

我当前的代码:

// Create the AccountHeader
            AccountHeader headerResult = new AccountHeaderBuilder()
                    .withActivity(this)
                    //.withHeaderBackground(R.drawable.header)
                    .addProfiles(
                            new ProfileDrawerItem().withName(displayName).withEmail(email).withIcon(firebaseUser.getPhotoUrl())
                    )
                    .withCompactStyle(true)
                    .withTextColor(getResources().getColor(R.color.itemTextColor))
                    .build();

已修复!添加了一行...

.withSelectionListEnabledForSingleProfile(false)