From 9136f61301cc4c16df9ab794e015aaad5765833b Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 26 May 2020 21:08:56 +0200 Subject: [PATCH] Always retry with user/name --- 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 51e41ce033..e85b945407 100644 --- a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java @@ -309,7 +309,9 @@ public class FragmentQuickSetup extends FragmentBase { null, imap_fingerprint); } else throw ex; - } catch (AuthenticationFailedException ex) { + } catch (Throwable ex) { + // Why not AuthenticationFailedException? + // Some providers refuse connection with an invalid username if (!user.equals(username)) { Log.w(ex); user = username;