mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Improve cold start performance.
This commit is contained in:
@@ -329,8 +329,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import io.reactivex.rxjava3.core.Flowable;
|
||||
import io.reactivex.rxjava3.core.Observable;
|
||||
import io.reactivex.rxjava3.disposables.Disposable;
|
||||
|
||||
import static org.thoughtcrime.securesms.database.GroupDatabase.GroupRecord;
|
||||
|
||||
@@ -2359,8 +2357,8 @@ public class ConversationParentFragment extends Fragment
|
||||
return annotations;
|
||||
}
|
||||
|
||||
Set<String> validRecipientIds = Stream.of(getRecipient().getParticipants())
|
||||
.map(r -> MentionAnnotation.idToMentionAnnotationValue(r.getId()))
|
||||
Set<String> validRecipientIds = Stream.of(getRecipient().getParticipantIds())
|
||||
.map(id -> MentionAnnotation.idToMentionAnnotationValue(id))
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
return Stream.of(annotations)
|
||||
|
||||
@@ -192,7 +192,9 @@ public class ConversationTitleView extends RelativeLayout {
|
||||
|
||||
private void setGroupRecipientTitle(@NonNull Recipient recipient) {
|
||||
this.title.setText(recipient.getDisplayName(getContext()));
|
||||
this.subtitle.setText(Stream.of(recipient.getParticipants())
|
||||
this.subtitle.setText(Stream.of(recipient.getParticipantIds())
|
||||
.limit(10)
|
||||
.map(Recipient::resolved)
|
||||
.sorted((a, b) -> Boolean.compare(a.isSelf(), b.isSelf()))
|
||||
.map(r -> r.isSelf() ? getResources().getString(R.string.ConversationTitleView_you)
|
||||
: r.getDisplayName(getContext()))
|
||||
|
||||
Reference in New Issue
Block a user