From ead0a1c4e2f2fe99ca8d63256df8064ff8ec2b68 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Feb 2021 17:54:57 +0100 Subject: [PATCH] Prevent enabling identity OAuth username/password on errors --- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index e24da52d3e..870b1f1c93 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -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); }