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.
This commit is contained in:
Danny Baumann 2013-09-25 14:52:59 +02:00
parent 2b7f5e7b70
commit aa798fad85

View file

@ -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