Merge pull request #13247 from dustdfg/crashlog_fix
Partially revert: ErrorActivity: Kotlin-fy buildMarkdown method
This commit is contained in:
commit
834f136102
@ -228,15 +228,16 @@ class ErrorActivity : AppCompatActivity() {
|
||||
|
||||
// Collapse all logs to a single paragraph when there are more than one
|
||||
// to keep the GitHub issue clean.
|
||||
if (errorInfo.stackTraces.isNotEmpty()) {
|
||||
if (errorInfo.stackTraces.size > 1) {
|
||||
append("<details><summary><b>Exceptions (")
|
||||
append(errorInfo.stackTraces.size)
|
||||
append(")</b></summary><p>\n")
|
||||
}
|
||||
|
||||
// add the logs
|
||||
errorInfo.stackTraces.forEachIndexed { index, stacktrace ->
|
||||
append("<details><summary><b>Crash log ")
|
||||
if (errorInfo.stackTraces.isNotEmpty()) {
|
||||
if (errorInfo.stackTraces.size > 1) {
|
||||
append(index + 1)
|
||||
}
|
||||
append("</b>")
|
||||
@ -246,6 +247,7 @@ class ErrorActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
// make sure to close everything
|
||||
if (errorInfo.stackTraces.size > 1) {
|
||||
append("</p></details>\n")
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user