properly remove invalid avatar
This commit is contained in:
parent
3db5a48529
commit
f52bc4f0be
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue