Fixed crash

This commit is contained in:
M66B
2019-12-26 17:11:54 +01:00
parent 78f8e3a445
commit ccdc26f91a

View File

@@ -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());