diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-06 18:36:33 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-06 18:36:33 +0200 |
commit | 2b4d9e8b60bdec97cbeedf070188efd6380e2332 (patch) | |
tree | ee65a70764696acb0eb906d2427dd203122b4a9b /src/eu/siacs/conversations/ui | |
parent | ba63727f50c192e63e171bedca92d7003981800c (diff) |
fixed problems with sha sum calculation on avatar write. delete avatars with non matching sha sum
Diffstat (limited to 'src/eu/siacs/conversations/ui')
-rw-r--r-- | src/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java index c184e0e0..9aca8fab 100644 --- a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -451,14 +451,10 @@ public class MessageAdapter extends ArrayAdapter<Message> { private HashMap<String, Bitmap> unknownBitmaps = new HashMap<String, Bitmap>(); public Bitmap get(Contact contact, Context context) { - if (contactBitmaps.containsKey(contact.getJid())) { - return contactBitmaps.get(contact.getJid()); - } else { - Bitmap bm = UIHelper.getContactPicture(contact, 48, context, - false); - contactBitmaps.put(contact.getJid(), bm); - return bm; + if (!contactBitmaps.containsKey(contact.getJid())) { + contactBitmaps.put(contact.getJid(), contact.getImage(48, context)); } + return contactBitmaps.get(contact.getJid()); } public Bitmap get(String name, Context context) { |