From ccdc26f91ac1984b81a1b585d8b3ff82ae721620 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Dec 2019 17:11:54 +0100 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 68e6c42880..66454fe404 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -1041,7 +1041,7 @@ public class FragmentIdentity extends FragmentBase { tilPassword.setEnabled(false); } - if (identity == null && identity.auth_type != MailService.AUTH_TYPE_GMAIL) + if (identity == null || identity.auth_type != MailService.AUTH_TYPE_GMAIL) Helper.hide(btnOAuth); cbPrimary.setEnabled(cbSynchronize.isChecked());