From 0f6a1f623aa55b726a3b31776d17d2220b2b9346 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Dec 2019 13:20:27 +0100 Subject: [PATCH] Notify all alerts --- .../java/eu/faircode/email/ServiceSynchronize.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index c8c4f1c7db..a48c2aff72 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -798,14 +798,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences Log.formatThrowable(new Core.AlertException(message), false)); db.account().setAccountError(account.id, message); - if (message != null && !message.startsWith("Too many simultaneous connections")) { - NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); - nm.notify("alert:" + account.id, 1, - Core.getNotificationError( - ServiceSynchronize.this, "warning", account.name, - new Core.AlertException(message)) - .build()); - } + NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); + nm.notify("alert:" + account.id, 1, + Core.getNotificationError( + ServiceSynchronize.this, "warning", account.name, + new Core.AlertException(message)) + .build()); state.error(null); } finally {