优化反馈收集类名

This commit is contained in:
zlzw 2022-10-31 10:02:45 +08:00
parent 73fb523ddc
commit 89a54276b3

View File

@ -62,8 +62,12 @@ public class CrashSaveBean {
public String getActivitySize() { public String getActivitySize() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (WeakReference<Activity> activity : activities) { for (WeakReference<Activity> activity : activities) {
try {
if (activity.get() != null) { if (activity.get() != null) {
builder.append(activity.get()).append(","); builder.append(activity.get().getClass().getSimpleName()).append(",");
}
} catch (Exception ignored) {
} }
} }
return builder.toString(); return builder.toString();