mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Fix note to self icon not showing correctly.
This commit is contained in:
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…
Reference in New Issue
Block a user