Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa798fad authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix caching of fallback contact icons.

The cache key must be consistent with how calcUnknownContactLetter()
works, otherwise one gets the same fallback icon for different senders.
parent 2b7f5e7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ public class ContactPictureLoader {
     * @see #calculateFallbackBitmap(Address)
     */
    public void loadContactPicture(Address address, QuickContactBadge badge) {
        String email = address.getAddress();
        String email = address.getPersonal() != null ? address.getPersonal() : address.getAddress();
        Bitmap bitmap = getBitmapFromCache(email);
        if (bitmap != null) {
            // The picture was found in the bitmap cache