// Create the AccountHeader
AccountHeader headerResult = new AccountHeaderBuilder()
.withActivity(this)
.addProfiles(
new ProfileDrawerItem().withName(uname).withEmail(email).withIcon(getResources().getDrawable(R.drawable.person1))
)
.withOnAccountHeaderListener(new AccountHeader.OnAccountHeaderListener() {
@Override
public boolean onProfileChanged(View view, IProfile profile, boolean currentProfile) {
return false;
}
})
.build();
所以在这里我想更新名称和电子邮件归档。这些数据将从 firebase 获取并希望更新名称、电子邮件字段