From ac98420516f64067ffdb7d2bdf59ada438c60a2e Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 12 Jul 2021 21:58:55 +0900 Subject: [PATCH] Make top part of report content readable in email app --- app/src/main/java/awaisomereport/CrashReporterHelper.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/awaisomereport/CrashReporterHelper.kt b/app/src/main/java/awaisomereport/CrashReporterHelper.kt index 4fa1ca84..3991f362 100644 --- a/app/src/main/java/awaisomereport/CrashReporterHelper.kt +++ b/app/src/main/java/awaisomereport/CrashReporterHelper.kt @@ -36,9 +36,9 @@ object CrashReporterHelper { fun getReportContent(exception: Throwable): String { var reportContent = """ - IMPORTANT: If sending by email, your email address and the entire content will be made public at - IMPORTANT: https://github.com/austinhuang0131/barinsta/issues - IMPORTANT: When possible, please describe the steps leading to this crash. Thank you for your cooperation. + IMPORTANT: If sending by email, your email address and the entire content will be made public at https://github.com/austinhuang0131/barinsta/issues. + + When possible, please describe the steps leading to this crash. Thank you for your cooperation. Error report collected on: ${LocalDateTime.now()} @@ -71,7 +71,7 @@ object CrashReporterHelper { exception.printStackTrace(it) reportBuilder.append(writer.toString()) var cause = exception.cause - if (cause != null) reportBuilder.append("\nCause:\n$shortBorder") + if (cause != null) reportBuilder.append("\nCause:\n$shortBorder\n") while (cause != null) { cause.printStackTrace(it) reportBuilder.append(writer.toString())