Browse Source

Suppress folder closed messages

main
M66B 6 years ago
parent
commit
d7b7a4ce7c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/src/main/java/eu/faircode/email/Helper.java

+ 6
- 0
app/src/main/java/eu/faircode/email/Helper.java View File

@ -49,6 +49,7 @@ import java.security.NoSuchAlgorithmException;
import java.util.concurrent.ThreadFactory;
import javax.mail.Address;
import javax.mail.FolderClosedException;
import javax.mail.internet.InternetAddress;
import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
@ -106,6 +107,11 @@ public class Helper {
}
static String formatThrowable(Throwable ex) {
if (ex instanceof FolderClosedException)
return null;
if (ex instanceof IllegalStateException)
return null;
StringBuilder sb = new StringBuilder();
sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage());
Throwable cause = ex.getCause();


Loading…
Cancel
Save