properly remove invalid avatar

This commit is contained in:
iNPUTmice 2015-02-22 13:15:27 +01:00
parent 3db5a48529
commit f52bc4f0be
2 changed files with 2 additions and 0 deletions

View file

@ -142,6 +142,7 @@ public class ConversationAdapter extends ArrayAdapter<Conversation> {
imageView.setBackgroundColor(0x00000000);
} else {
imageView.setBackgroundColor(UIHelper.getColorForName(conversation.getName()));
imageView.setImageDrawable(null);
final BitmapWorkerTask task = new BitmapWorkerTask(imageView);
final AsyncDrawable asyncDrawable = new AsyncDrawable(activity.getResources(), null, task);
imageView.setImageDrawable(asyncDrawable);

View file

@ -128,6 +128,7 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
imageView.setBackgroundColor(0x00000000);
} else {
imageView.setBackgroundColor(UIHelper.getColorForName(item.getDisplayName()));
imageView.setImageDrawable(null);
final BitmapWorkerTask task = new BitmapWorkerTask(imageView);
final AsyncDrawable asyncDrawable = new AsyncDrawable(activity.getResources(), null, task);
imageView.setImageDrawable(asyncDrawable);