mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-20 16:54:28 +01:00
Update username strings.
This commit is contained in:
committed by
Cody Henthorne
parent
13652a74b6
commit
914917c7e9
+4
-12
@@ -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);
|
||||
|
||||
@@ -1583,7 +1583,7 @@
|
||||
<!-- Explanation text about usernames etc displayed underneath buttons to view and edit username etc -->
|
||||
<string name="ManageProfileFragment__your_username">Your username, QR code and link aren\'t visible on your profile. Only share your username with people you trust.</string>
|
||||
<!-- Explanation text about usernames etc displayed underneath buttons to view and edit username etc, shown when you have no username -->
|
||||
<string name="ManageProfileFragment__username_footer_no_username">People can now message you using your optional username so you don\'t have to give out your phone number. </string>
|
||||
<string name="ManageProfileFragment__username_footer_no_username">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.</string>
|
||||
<string name="ManageProfileFragment_profile_name">Profile name</string>
|
||||
<string name="ManageProfileFragment_username">Username</string>
|
||||
<string name="ManageProfileFragment_about">About</string>
|
||||
@@ -3195,7 +3195,7 @@
|
||||
<string name="UsernameEditFragment_username_is_invalid">Username is invalid.</string>
|
||||
<string name="UsernameEditFragment_usernames_must_be_between_a_and_b_characters">Usernames must be between %1$d and %2$d characters.</string>
|
||||
<!-- Explanation about what usernames provide -->
|
||||
<string name="UsernameEditFragment__usernames_let_others_message">Usernames are always paired with a set of numbers.</string>
|
||||
<string name="UsernameEditFragment__usernames_let_others_message">People can message you using your optional username instead of a phone number. Usernames are always paired with a set of numbers.</string>
|
||||
<!-- Dialog title for explanation about numbers at the end of the username -->
|
||||
<string name="UsernameEditFragment__what_is_this_number">What is this number?</string>
|
||||
<string name="UsernameEditFragment__these_digits_help_keep">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.</string>
|
||||
|
||||
Reference in New Issue
Block a user