优化反馈收集类名

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

View File

@ -60,10 +60,14 @@ 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) {
if(activity.get()!=null){ try {
builder.append(activity.get()).append(","); if (activity.get() != null) {
builder.append(activity.get().getClass().getSimpleName()).append(",");
}
} catch (Exception ignored) {
} }
} }
return builder.toString(); return builder.toString();