mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Do not set color before profile name is known.
This commit is contained in:
committed by
Greyson Parrelli
parent
74e94f3a97
commit
a05f74d302
@@ -99,6 +99,10 @@ public final class ProfileName implements Parcelable {
|
||||
givenName = StringUtil.trimToFit(givenName.trim(), ProfileName.MAX_PART_LENGTH);
|
||||
familyName = StringUtil.trimToFit(familyName.trim(), ProfileName.MAX_PART_LENGTH);
|
||||
|
||||
if (givenName.isEmpty() && familyName.isEmpty()) {
|
||||
return EMPTY;
|
||||
}
|
||||
|
||||
return new ProfileName(givenName, familyName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user