#740 - Fix bug I introduced in b0c56b3, and set the input type when auth metod is changed to password

This commit is contained in:
Joshua Soberg 2021-01-30 11:26:00 -05:00
parent e1ced76b55
commit d1edfe1426

View file

@ -257,6 +257,9 @@ public class CredentialsPreference extends DialogPreference
passwordLayout.setHint(getContext().getString(R.string.settings_hint_password));
passwordConfirm.setHint(R.string.settings_hint_password_confirm);
passwordInput.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
passwordConfirm.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
ConfirmedPasswordTransformationHelper.setup(passwordLayout, passwordInput, passwordConfirm);
passwordInput.setTransformationMethod(new PasswordTransformationMethod());