mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Fix share contact list updating improperly on selection change.
This commit is contained in:
committed by
Greyson Parrelli
parent
911dd9efb1
commit
aba5774446
@@ -189,7 +189,11 @@ public class ContactSelectionListItem extends LinearLayout implements RecipientF
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRecipientChanged(@NonNull Recipient recipient) {
|
public void onRecipientChanged(@NonNull Recipient recipient) {
|
||||||
contactPhotoImage.setAvatar(glideRequests, recipient, false);
|
if (this.recipient != null && this.recipient.getId().equals(recipient.getId())) {
|
||||||
setText(recipient, contactType, contactName, contactNumber, contactLabel, contactAbout);
|
contactPhotoImage.setAvatar(glideRequests, recipient, false);
|
||||||
|
setText(recipient, contactType, contactName, contactNumber, contactLabel, contactAbout);
|
||||||
|
} else {
|
||||||
|
Log.w(TAG, "Bad change! Local recipient doesn't match. Ignoring. Local: " + (this.recipient == null ? "null" : this.recipient.getId()) + ", Changed: " + recipient.getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user