From 914917c7e9070c6694a285fd92b3adc4e0c1fd69 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 10 Sep 2026 13:08:57 -0400 Subject: [PATCH] Update username strings. --- .../profiles/manage/UsernameEditFragment.java | 16 ++++------------ app/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragment.java b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragment.java index a1f1e05461..c304faead4 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragment.java @@ -37,8 +37,9 @@ import org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton; public class UsernameEditFragment extends LoggingFragment { - private static final float DISABLED_ALPHA = 0.5f; - public static final String IGNORE_TEXT_CHANGE_EVENT = "ignore.text.change.event"; + private static final float DISABLED_ALPHA = 0.5f; + private static final String USERNAME_SUPPORT_URL = "https://support.signal.org/hc/articles/6712070553754"; + public static final String IGNORE_TEXT_CHANGE_EVENT = "ignore.text.change.event"; public static final int REQUEST_CODE = 4242; @@ -132,7 +133,7 @@ public class UsernameEditFragment extends LoggingFragment { binding.usernameDescription.setLinkColor(ContextCompat.getColor(requireContext(), org.signal.core.ui.R.color.signal_colorPrimary)); binding.usernameDescription.setLearnMoreVisible(true); - binding.usernameDescription.setOnLinkClickListener(this::onLearnMore); + binding.usernameDescription.setLink(USERNAME_SUPPORT_URL); ViewUtil.focusAndShowKeyboard(binding.usernameText); } @@ -158,15 +159,6 @@ public class UsernameEditFragment extends LoggingFragment { } } - - private void onLearnMore(@Nullable View unused) { - new MaterialAlertDialogBuilder(requireContext()) - .setTitle(getString(R.string.UsernameEditFragment__what_is_this_number)) - .setMessage(R.string.UsernameEditFragment__these_digits_help_keep) - .setPositiveButton(android.R.string.ok, (dialog, which) -> {}) - .show(); - } - private void onUiStateChanged(@NonNull UsernameEditViewModel.State state) { presentProgressState(state.usernameState); presentButtonState(state.buttonState); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3f4395e1ad..8c01e95643 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1583,7 +1583,7 @@ Your username, QR code and link aren\'t visible on your profile. Only share your username with people you trust. - People can now message you using your optional username so you don\'t have to give out your phone number. + People can message you using an optional username instead of a phone number. Usernames have a unique QR code and link you can share with friends. Profile name Username About @@ -3195,7 +3195,7 @@ Username is invalid. Usernames must be between %1$d and %2$d characters. - Usernames are always paired with a set of numbers. + People can message you using your optional username instead of a phone number. Usernames are always paired with a set of numbers. What is this number? These digits help keep your username private so you can avoid unwanted messages. Share your username with only the people and groups you\'d like to chat with. If you change usernames you\'ll get a new set of digits.