Fix share contact list updating improperly on selection change.

fork-5.53.8
Cody Henthorne 2021-06-28 16:40:14 -04:00 zatwierdzone przez Greyson Parrelli
rodzic 911dd9efb1
commit aba5774446
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -189,7 +189,11 @@ public class ContactSelectionListItem extends LinearLayout implements RecipientF
@Override
public void onRecipientChanged(@NonNull Recipient recipient) {
contactPhotoImage.setAvatar(glideRequests, recipient, false);
setText(recipient, contactType, contactName, contactNumber, contactLabel, contactAbout);
if (this.recipient != null && this.recipient.getId().equals(recipient.getId())) {
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());
}
}
}