Add capitalization to profile names.

This commit is contained in:
mtang-signal
2024-09-13 11:15:11 -07:00
committed by Greyson Parrelli
parent 76175c7a6b
commit 81b4339bea

View File

@@ -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);