mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Suppress LeakCanary/NonSdkApiUsedViolation
This commit is contained in:
@@ -142,12 +142,15 @@ public class ApplicationEx extends Application
|
||||
StackTraceElement[] stack = v.getStackTrace();
|
||||
for (StackTraceElement ste : stack) {
|
||||
String clazz = ste.getClassName();
|
||||
if (clazz == null)
|
||||
continue;
|
||||
if (clazz.startsWith("leakcanary."))
|
||||
return;
|
||||
if ("com.sun.mail.util.WriteTimeoutSocket".equals(clazz))
|
||||
return;
|
||||
if (clazz != null &&
|
||||
(clazz.startsWith("org.chromium") ||
|
||||
clazz.startsWith("com.android.webview.chromium") ||
|
||||
clazz.startsWith("androidx.appcompat.widget")))
|
||||
if (clazz.startsWith("org.chromium") ||
|
||||
clazz.startsWith("com.android.webview.chromium") ||
|
||||
clazz.startsWith("androidx.appcompat.widget"))
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user