From 166c0735afce933a6601ebadf6d39ff7469400ab Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 11 Sep 2020 11:58:15 +1000 Subject: [PATCH] Always capitalize placeholder icons --- .../securesms/loki/utilities/AvatarPlaceholderGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/loki/utilities/AvatarPlaceholderGenerator.kt b/src/org/thoughtcrime/securesms/loki/utilities/AvatarPlaceholderGenerator.kt index c7bd12d2b3..da4347af9f 100644 --- a/src/org/thoughtcrime/securesms/loki/utilities/AvatarPlaceholderGenerator.kt +++ b/src/org/thoughtcrime/securesms/loki/utilities/AvatarPlaceholderGenerator.kt @@ -30,7 +30,7 @@ object AvatarPlaceholderGenerator { val colorSecondary = changeColorHueBy(colorPrimary, 12f) val labelText = when { - !TextUtils.isEmpty(displayName) -> extractLabel(displayName!!) + !TextUtils.isEmpty(displayName) -> extractLabel(displayName!!.capitalize()) !TextUtils.isEmpty(hashString) -> extractLabel(hashString) else -> EMPTY_LABEL }