From 313a5bff9c2567669a1b10b550e2f611c4268439 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Fri, 20 Sep 2013 18:15:27 -0400 Subject: [PATCH] Contact picture fix. Clear out old/unrelated (previously bound) contactBadge info in MessageListAdapter.bindView that could otherwise be displayed when tapping on a contactBadge with no counterpartyAddress (may require scrolling the message list up and down first before the bug becomes evident). --- src/com/fsck/k9/fragment/MessageListFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 732d83cfc..7d59ed654 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1972,6 +1972,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick holder.contactBadge.setPadding(0, 0, 0, 0); mContactsPictureLoader.loadContactPicture(counterpartyAddress, holder.contactBadge); } else { + holder.contactBadge.assignContactUri(null); holder.contactBadge.setImageResource(R.drawable.ic_contact_picture); } }