Tweak how identities are displayed in the drawer
This commit is contained in:
@@ -443,7 +443,7 @@ public class EmailListActivity extends BoteActivityBase implements
|
|||||||
profiles.add(new ProfileDrawerItem()
|
profiles.add(new ProfileDrawerItem()
|
||||||
.withIdentifier(ID_ALL_MAIL)
|
.withIdentifier(ID_ALL_MAIL)
|
||||||
.withTag(null)
|
.withTag(null)
|
||||||
.withName(getContext().getString(R.string.all_mail))
|
.withEmail(getContext().getString(R.string.all_mail))
|
||||||
.withIcon(getContext().getResources().getDrawable(R.drawable.ic_contact_picture))
|
.withIcon(getContext().getResources().getDrawable(R.drawable.ic_contact_picture))
|
||||||
);
|
);
|
||||||
for (EmailIdentity identity : identities) {
|
for (EmailIdentity identity : identities) {
|
||||||
@@ -464,8 +464,8 @@ public class EmailListActivity extends BoteActivityBase implements
|
|||||||
return new ProfileDrawerItem()
|
return new ProfileDrawerItem()
|
||||||
.withIdentifier(identity.hashCode())
|
.withIdentifier(identity.hashCode())
|
||||||
.withTag(identity)
|
.withTag(identity)
|
||||||
.withName(identity.getPublicName())
|
.withName(identity.getDescription())
|
||||||
.withEmail(identity.getDescription())
|
.withEmail(identity.getPublicName() + " <" + identity.getKey().substring(0, 4) + ">")
|
||||||
.withIcon(BoteHelper.getIdentityPicture(identity, identiconSize, identiconSize));
|
.withIcon(BoteHelper.getIdentityPicture(identity, identiconSize, identiconSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user