1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

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

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);
}