Do not show username education if username is set.

This commit is contained in:
Greyson Parrelli 2024-01-19 14:12:44 -05:00
parent 595cced5b7
commit 5e97a6b192

View file

@ -81,7 +81,7 @@ class EditProfileFragment : LoggingFragment() {
binding.manageProfileNameContainer.setOnClickListener { v: View -> findNavController(v).safeNavigate(EditProfileFragmentDirections.actionManageProfileName()) }
binding.manageProfileUsernameContainer.setOnClickListener { v: View ->
if (SignalStore.uiHints().hasSeenUsernameEducation()) {
if (SignalStore.uiHints().hasSeenUsernameEducation() || SignalStore.account().username != null) {
if (SignalStore.account().username != null) {
MaterialAlertDialogBuilder(requireContext(), R.style.ThemeOverlay_Signal_MaterialAlertDialog_List)
.setItems(R.array.username_edit_entries) { _: DialogInterface?, w: Int ->