mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-10 11:35:11 -05:00
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:
parent
2b7f5e7b70
commit
aa798fad85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user