1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Suppress timeout reporting

This commit is contained in:
M66B 2018-08-23 13:00:01 +00:00
parent ae2ab1aef3
commit 239673c9ac

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());
}