Fix note to self icon not showing correctly.

pull/50/head
Mikunj 5 years ago
parent 6e7b21e8b4
commit bef1e5c469

@ -125,7 +125,9 @@ public class AvatarImageView extends AppCompatImageView {
requestManager.clear(this);
recipientContactPhoto = photo;
Drawable fallbackContactPhotoDrawable = photo.recipient.getFallbackContactPhotoDrawable(getContext(), inverted);
Drawable fallbackContactPhotoDrawable = recipient.isLocalNumber()
? new ResourceContactPhoto(R.drawable.ic_note_to_self).asDrawable(getContext(), recipient.getColor().toAvatarColor(getContext()), inverted)
: photo.recipient.getFallbackContactPhotoDrawable(getContext(), inverted);
if (photo.contactPhoto != null) {
requestManager.load(photo.contactPhoto)

Loading…
Cancel
Save