1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

DebugInfo: include the crash exception if available.

This commit is contained in:
Tom Hacohen 2020-10-27 09:08:26 +02:00
parent e6c172e60b
commit 8006ad1196

View File

@ -66,7 +66,7 @@ class DebugInfoActivity : BaseActivity(), LoaderManager.LoaderCallbacks<String>
fun onShare(item: MenuItem) {
ACRA.getErrorReporter().putCustomData("debug_info", report)
ACRA.getErrorReporter().handleException(null)
ACRA.getErrorReporter().handleException(intent.extras?.getSerializable(KEY_THROWABLE) as Throwable?)
ACRA.getErrorReporter().removeCustomData("debug_info")
}