HabitRPG / habitica-android

Native Android app for Habitica
GNU General Public License v3.0
1.41k stars 508 forks source link

fix.2058: Help text says 'Email' in the text box when trying to edit … #2060

Closed rehfeld13 closed 7 months ago

rehfeld13 commented 7 months ago

…your Display Name

The solution to fix this error was to define the hint in both places (binding.editText.hint and binding.inputLayout.hint), due to the hierarchy of the layout being used. The TextInputLayout is used to create a floating label for the EditText. For the floating label to work correctly, the hint must be defined in both EditText and TextInputLayout.

Before: image

After: image

my Habitica User-ID: f6e70489-0c97-49d1-abe0-032779cf9550

saraolson commented 7 months ago

@rehfeld13 thanks so much for your contribution! I've added record of it to your Habitica profile and granted you a contributor tier 🎉 we'll be releasing it in the 4.3.4 update.