Notify all alerts

This commit is contained in:
M66B 2019-12-09 13:20:27 +01:00
parent 32b7951d95
commit 0f6a1f623a
1 changed files with 6 additions and 8 deletions

View File

@ -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 {