mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +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…
x
Reference in New Issue
Block a user