Improve button text during registration. Fixes #1249

This commit is contained in:
Phillip Thelen 2019-11-25 13:18:19 +01:00
parent 6918dd3e12
commit 81a1a23cf7
2 changed files with 6 additions and 0 deletions

View file

@ -461,6 +461,8 @@
<string name="not_owned">Not owned</string>
<string name="login_btn_fb">Login with Facebook</string>
<string name="login_btn_google">Login with Google</string>
<string name="register_btn_fb">Sign up with Facebook</string>
<string name="register_btn_google">Sign up with Google</string>
<string name="action_back">Back</string>
<string name="welcome_text">Oh, you must be new here. Im Justin, Ill be your guide in Habitica.\n\nFirst, what should we call you? Feel free to change what I picked. When youre all set, lets create your avatar!</string>
<string name="randomize">Randomize</string>

View file

@ -252,10 +252,14 @@ class LoginActivity : BaseActivity(), Consumer<UserAuthResponse> {
this.mLoginNormalBtn.text = getString(R.string.register_btn)
mUsernameET.setHint(R.string.username)
mPasswordET.imeOptions = EditorInfo.IME_ACTION_NEXT
facebookLoginButton.setText(R.string.register_btn_fb)
googleLoginButton.setText(R.string.register_btn_google)
} else {
this.mLoginNormalBtn.text = getString(R.string.login_btn)
mUsernameET.setHint(R.string.email_username)
mPasswordET.imeOptions = EditorInfo.IME_ACTION_DONE
facebookLoginButton.setText(R.string.login_btn_fb)
googleLoginButton.setText(R.string.login_btn_google)
}
this.resetLayout()
}