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