1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

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).
This commit is contained in:
Joe Steele 2013-09-20 18:15:27 -04:00
parent 1afff1e38f
commit 313a5bff9c

View File

@ -1972,6 +1972,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
holder.contactBadge.setPadding(0, 0, 0, 0); holder.contactBadge.setPadding(0, 0, 0, 0);
mContactsPictureLoader.loadContactPicture(counterpartyAddress, holder.contactBadge); mContactsPictureLoader.loadContactPicture(counterpartyAddress, holder.contactBadge);
} else { } else {
holder.contactBadge.assignContactUri(null);
holder.contactBadge.setImageResource(R.drawable.ic_contact_picture); holder.contactBadge.setImageResource(R.drawable.ic_contact_picture);
} }
} }