Prevent enabling identity OAuth username/password on errors

This commit is contained in:
M66B 2021-02-11 17:54:57 +01:00
parent fbcc07f08a
commit ead0a1c4e2
1 changed files with 5 additions and 0 deletions

View File

@ -638,6 +638,11 @@ public class FragmentIdentity extends FragmentBase {
saving = false;
getActivity().invalidateOptionsMenu();
Helper.setViewsEnabled(view, true);
if (auth != AUTH_TYPE_PASSWORD) {
etUser.setEnabled(false);
tilPassword.setEnabled(false);
btnCertificate.setEnabled(false);
}
pbSave.setVisibility(View.GONE);
}