Skip to content

Commit

Permalink
Update Info Activity.
Browse files Browse the repository at this point in the history
  • Loading branch information
yueeng committed Mar 5, 2024
1 parent f85e735 commit 16c6050
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class CrashActivity : AppCompatActivity(R.layout.activity_crash) {
info.forEach { i ->
writer.println("===== ${i.simpleName} =====")
i.java.declaredFields.filter { Modifier.isStatic(it.modifiers) }.forEach {
runCatching { it.isAccessible = true }
val value = runCatching { it.get(null) }.getOrElse { t -> t.message }
writer.println("${it.name}: ${gson.toJson(value)}")
}
Expand Down

0 comments on commit 16c6050

Please sign in to comment.