Move 'you' to end of unnamed groups.
This commit is contained in:
parent
062e88b24f
commit
383beafdef
1 changed files with 4 additions and 4 deletions
|
@ -454,10 +454,6 @@ public class Recipient {
|
||||||
|
|
||||||
List<String> names = new LinkedList<>();
|
List<String> names = new LinkedList<>();
|
||||||
|
|
||||||
if (participants.stream().anyMatch(Recipient::isSelf)) {
|
|
||||||
names.add(context.getString(R.string.Recipient_you));
|
|
||||||
}
|
|
||||||
|
|
||||||
for (Recipient participant : others) {
|
for (Recipient participant : others) {
|
||||||
String shortName = participant.getShortDisplayName(context);
|
String shortName = participant.getShortDisplayName(context);
|
||||||
int count = Objects.requireNonNull(shortNameCounts.getOrDefault(shortName, 0));
|
int count = Objects.requireNonNull(shortNameCounts.getOrDefault(shortName, 0));
|
||||||
|
@ -469,6 +465,10 @@ public class Recipient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (participants.stream().anyMatch(Recipient::isSelf)) {
|
||||||
|
names.add(context.getString(R.string.Recipient_you));
|
||||||
|
}
|
||||||
|
|
||||||
return Util.join(names, ", ");
|
return Util.join(names, ", ");
|
||||||
} else {
|
} else {
|
||||||
return this.groupName;
|
return this.groupName;
|
||||||
|
|
Loading…
Add table
Reference in a new issue