1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 16:25:30 +00:00

Use full email address for identicon

This commit is contained in:
M66B 2018-11-04 07:11:26 +00:00
parent 4eae690b59
commit 35e08f769f

View file

@ -293,9 +293,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
}
if (!photo && identicons) {
if (message.from.length > 0)
ivAvatar.setImageBitmap(
Identicon.generate(((InternetAddress) message.from[0]).getAddress(),
dp24, 5, "light".equals(theme)));
ivAvatar.setImageBitmap(Identicon.generate(message.from[0].toString(), dp24, 5, "light".equals(theme)));
else
ivAvatar.setImageDrawable(null);
photo = true;