mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Filter exception
This commit is contained in:
@@ -105,6 +105,8 @@ import javax.mail.internet.InternetAddress;
|
||||
import javax.net.ssl.SSLHandshakeException;
|
||||
import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
|
||||
import io.requery.android.database.CursorWindowAllocationException;
|
||||
|
||||
public class Log {
|
||||
private static boolean debug = false;
|
||||
private static final int MAX_CRASH_REPORTS = 5;
|
||||
@@ -708,6 +710,9 @@ public class Log {
|
||||
ex.getMessage().contains("finalize"))
|
||||
return false;
|
||||
|
||||
if (ex instanceof CursorWindowAllocationException)
|
||||
return false;
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
if (ex instanceof RuntimeException && ex.getCause() instanceof DeadObjectException)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user