From 9ae63df5d3a1fe587b3af77bb020eb5cd8b39e56 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 5 Jul 2020 18:43:54 +0200 Subject: [PATCH] Oops --- .../main/java/eu/faircode/email/ServiceSynchronize.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index a604bcd81c..2c4e49228a 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -930,7 +930,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences } catch (Throwable ex) { // Immediately report auth errors if (ex instanceof AuthenticationFailedException) { - if (!ConnectionHelper.isIoError(ex)) { + if (ConnectionHelper.isIoError(ex)) { + if (!BuildConfig.PLAY_STORE_RELEASE) + Log.e(ex); + } else { Log.e(ex); try { NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); @@ -942,9 +945,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences } throw ex; } - } else { - if (!BuildConfig.PLAY_STORE_RELEASE) - Log.e(ex); } // Report account connection error