Browse Source

Suppress timeout reporting

main
M66B 6 years ago
parent
commit
239673c9ac
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 3
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -332,7 +332,8 @@ public class ServiceSynchronize extends LifecycleService {
if (!(ex instanceof MailConnectException) &&
!(ex instanceof FolderClosedException) &&
!(ex instanceof IllegalStateException)) {
!(ex instanceof IllegalStateException) &&
!(ex instanceof MessagingException && ex.getCause() instanceof SocketTimeoutException)) {
String action;
if (TextUtils.isEmpty(account))
action = folder;
@ -340,6 +341,7 @@ public class ServiceSynchronize extends LifecycleService {
action = account;
else
action = account + "/" + folder;
NotificationManager nm = getSystemService(NotificationManager.class);
nm.notify(action, 1, getNotificationError(action, ex).build());
}


Loading…
Cancel
Save