From 81b4339beaff9f6ffa78dd895515ea2e6a496970 Mon Sep 17 00:00:00 2001 From: mtang-signal Date: Fri, 13 Sep 2024 11:15:11 -0700 Subject: [PATCH] Add capitalization to profile names. --- .../securesms/profiles/manage/EditProfileNameFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java index f12ffbdd85..c5d29a3f08 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java @@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.profiles.manage; import android.os.Bundle; import android.text.Editable; +import android.text.InputType; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -136,7 +137,7 @@ public class EditProfileNameFragment extends Fragment { text.setEnabled(enabled); text.setFocusable(enabled); if (enabled) { - text.setInputType(EditorInfo.TYPE_TEXT_VARIATION_PERSON_NAME); + text.setInputType(EditorInfo.TYPE_TEXT_VARIATION_PERSON_NAME | InputType.TYPE_TEXT_FLAG_CAP_WORDS); } else { text.clearFocus(); text.setInputType(EditorInfo.TYPE_NULL);