Fix ComponentName method call - use toString() instead

The flattenToShortString() method is not available in the compilation
context. Changed to use toString() which is universally available and
will provide the component name in ComponentInfo{package/class} format.

Co-authored-by: fankes <37344460+fankes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-16 06:16:50 +00:00
parent b89a4f3550
commit 092f50308d

View File

@@ -161,7 +161,7 @@ data class AppErrorsInfoBean(
isAnr = true,
exceptionClassName = "ANR",
exceptionMessage = anrInfo?.cause ?: "Application Not Responding",
throwFileName = anrInfo?.activity?.flattenToShortString() ?: "unknown",
throwFileName = anrInfo?.activity?.toString() ?: "unknown",
throwClassName = packageName ?: "unknown",
throwMethodName = "unknown",
throwLineNumber = -1,