mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Generated icons improvements
This commit is contained in:
@@ -166,9 +166,11 @@ public class ContactInfo {
|
||||
boolean identicons = prefs.getBoolean("identicons", false);
|
||||
if (identicons) {
|
||||
identicon = true;
|
||||
info.bitmap = ImageHelper.generateIdenticon(key, dp, 5, context);
|
||||
info.bitmap = ImageHelper.generateIdenticon(
|
||||
address.getAddress(), dp, 5, context);
|
||||
} else
|
||||
info.bitmap = ImageHelper.generateLetterIcon(key, dp, context);
|
||||
info.bitmap = ImageHelper.generateLetterIcon(
|
||||
address.getAddress(), address.getPersonal(), dp, context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +184,6 @@ public class ContactInfo {
|
||||
if (!info.known) {
|
||||
DB db = DB.getInstance(context);
|
||||
EntityContact contact = db.contact().getContact(account, EntityContact.TYPE_TO, info.email);
|
||||
|
||||
info.known = (contact != null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user