#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:
parent
0a4eadd7fb
commit
b75fdd0026
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue