Prevent enabling identity OAuth username/password on errors

pull/194/head
M66B 4 years ago
parent fbcc07f08a
commit ead0a1c4e2

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

Loading…
Cancel
Save