From 7a407cd884595a406410b78ae9789b794b1ca6a1 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 16 Aug 2021 22:37:44 +0200 Subject: [PATCH] Show first server details on failure --- app/src/main/java/eu/faircode/email/FragmentQuickSetup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java index f334bcc0c5..acb6cc9805 100644 --- a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java @@ -292,6 +292,9 @@ public class FragmentQuickSetup extends FragmentBase { EntityLog.log(context, "Checking" + " imap=" + provider.imap + " smtp=" + provider.smtp); + if (fail == null) + args.putParcelable("provider", provider); + String user = (provider.user == EmailProvider.UserType.EMAIL ? email : username); Log.i("User type=" + provider.user + " name=" + user); @@ -382,7 +385,6 @@ public class FragmentQuickSetup extends FragmentBase { } if (check) { - args.putParcelable("provider", provider); args.putSerializable("imap_certificate", imap_certificate); args.putSerializable("smtp_certificate", smtp_certificate); return provider;