mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2026-02-04 12:17:22 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user