Merge pull request #1774 from Hafizzle/Hafiz/update-forgot-pw

Updated forgot pw strings
This commit is contained in:
Phillip Thelen 2022-05-16 15:14:41 +02:00 committed by GitHub
commit 277105e5ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -613,8 +613,9 @@
<string name="fix_character_values">Fix Character Values</string>
<string name="saving">Saving</string>
<string name="forgot_password_title">Email a Password Reset Link</string>
<string name="forgot_password_description">Enter the email address you used to register your Habitica account.</string>
<string name="forgot_password_description">Enter your username or the email address you used to register your Habitica account.</string>
<string name="forgot_password_confirmation">If we have your email on file, instructions for setting a new password have been sent to your email.</string>
<string name="forgot_password_hint_example">e.g, habitrabbit or gryphon@example.com</string>
<string name="ok">OK</string>
<string name="profile">Profile</string>
<string name="profile_summary">Edit your public profile.</string>

View file

@ -405,7 +405,9 @@ class LoginActivity : BaseActivity() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
input.setAutofillHints(EditText.AUTOFILL_HINT_EMAIL_ADDRESS)
}
input.inputType = InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS
input.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS
input.hint = getString(R.string.forgot_password_hint_example)
input.textSize = 16f
val lp = LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.MATCH_PARENT