mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-31 11:31:40 +00:00
Small improvement
This commit is contained in:
parent
cef1389244
commit
13e818b5e2
1 changed files with 2 additions and 6 deletions
|
@ -46,7 +46,6 @@ import com.bugsnag.android.BeforeSend;
|
|||
import com.bugsnag.android.Bugsnag;
|
||||
import com.bugsnag.android.Error;
|
||||
import com.bugsnag.android.Report;
|
||||
import com.sun.mail.iap.ConnectionException;
|
||||
import com.sun.mail.iap.ProtocolException;
|
||||
|
||||
import org.json.JSONArray;
|
||||
|
@ -57,8 +56,6 @@ import java.io.File;
|
|||
import java.io.FileNotFoundException;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.net.SocketException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
@ -191,10 +188,9 @@ public class ApplicationEx extends Application {
|
|||
|
||||
if (ex instanceof MessagingException &&
|
||||
(ex.getCause() instanceof IOException ||
|
||||
ex.getCause() instanceof ConnectionException ||
|
||||
ex.getCause() instanceof SocketException ||
|
||||
ex.getCause() instanceof SocketTimeoutException ||
|
||||
ex.getCause() instanceof ProtocolException))
|
||||
// IOException includes SocketException, SocketTimeoutException
|
||||
// ProtocolException includes ConnectionException
|
||||
return false;
|
||||
|
||||
if (ex instanceof MessagingException &&
|
||||
|
|
Loading…
Reference in a new issue