Ignores out of memory exceptions because the stack trace is irrelevant in those cases.
This commit is contained in:
+5
-2
@@ -33,8 +33,11 @@ class UnexpectedCrashSaver(
|
|||||||
t: Thread,
|
t: Thread,
|
||||||
e: Throwable,
|
e: Throwable,
|
||||||
) {
|
) {
|
||||||
scope.launch {
|
if (e !is OutOfMemoryError) {
|
||||||
cache.writeReport(ReportAssembler().buildReport(e))
|
// OOM reports are junk
|
||||||
|
scope.launch {
|
||||||
|
cache.writeReport(ReportAssembler().buildReport(e))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
defaultUEH!!.uncaughtException(t, e)
|
defaultUEH!!.uncaughtException(t, e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user