#740 - Clear text when the user chooses a new authentication type

Not clearing was allowing a potentially weird state where you could have alpha characters in a PIN
This commit is contained in:
Joshua Soberg 2021-01-30 11:51:37 -05:00
parent 0a4eadd7fb
commit b75fdd0026

View file

@ -287,6 +287,12 @@ public class CredentialsPreference extends DialogPreference
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
value = entryValues.get(position);
updateLayout();
clearInputFields();
}
private void clearInputFields() {
passwordInput.setText(null);
passwordConfirm.setText(null);
}
// Needed stub functions