kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix context leak from lingering RecipientModifiedListener.
Because ContactSelectionListItem is used as a RecipientModifiedListener, it leaks its context (NewConversationActivity/PushContactSelectionActivity), which can lead to OOM crashes. Closes #3214 // FREEBIEfork-5.53.8
rodzic
7ecc58095b
commit
18436dc3be
|
@ -107,6 +107,7 @@ public class ContactSelectionListItem extends RelativeLayout implements Recipien
|
|||
@Override
|
||||
public void onModified(final Recipient recipient) {
|
||||
if (this.recipient == recipient) {
|
||||
recipient.removeListener(this);
|
||||
this.contactPhotoImage.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Ładowanie…
Reference in New Issue