mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-16 13:43:07 +00:00
Improve locking and performance on asynchronous contact loading.
This commit is contained in:
@@ -103,6 +103,7 @@ public class ConversationListItem extends RelativeLayout
|
||||
this.count = thread.getCount();
|
||||
this.read = thread.isRead();
|
||||
|
||||
this.recipients.addListener(this);
|
||||
this.fromView.setText(formatFrom(recipients, count, read));
|
||||
|
||||
if (thread.isKeyExchange())
|
||||
@@ -124,7 +125,10 @@ public class ConversationListItem extends RelativeLayout
|
||||
else checkbox.setVisibility(View.GONE);
|
||||
|
||||
setContactPhoto(this.recipients.getPrimaryRecipient());
|
||||
this.recipients.setListener(this);
|
||||
}
|
||||
|
||||
public void unbind() {
|
||||
this.recipients.removeListener(this);
|
||||
}
|
||||
|
||||
private void intializeListeners() {
|
||||
|
Reference in New Issue
Block a user