mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 19:33:01 +00:00
Remove the exclusion for RuntimeException containing "Unable to start service".
This commit is contained in:
+5
-9
@@ -33,16 +33,12 @@ class UnexpectedCrashSaver(
|
||||
t: Thread,
|
||||
e: Throwable,
|
||||
) {
|
||||
if (e is RuntimeException && e.message?.contains("Unable to start service") == true) { // Usually happens on graphene when pressing restart app notification after an update (cant reproduce this crash)
|
||||
defaultUEH!!.uncaughtException(t, e)
|
||||
} else {
|
||||
if (e !is OutOfMemoryError) {
|
||||
// OOM reports are junk
|
||||
scope.launch {
|
||||
cache.writeReport(ReportAssembler().buildReport(e))
|
||||
}
|
||||
if (e !is OutOfMemoryError) {
|
||||
// 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