补充反馈参数
This commit is contained in:
parent
2c74fb78d9
commit
bf8e6de236
@ -117,7 +117,7 @@ public class AppContext extends CommonAppContext {
|
|||||||
@Override
|
@Override
|
||||||
public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {
|
public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {
|
||||||
activities.add(new WeakReference<>(activity));
|
activities.add(new WeakReference<>(activity));
|
||||||
CrashSaveBean.getInstance().setActivitySize(activities.size());
|
CrashSaveBean.getInstance().setActivitySize(activities);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
package com.yunbao.common.bean;
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
|
||||||
|
import java.lang.ref.WeakReference;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于统计记录崩溃的数据
|
* 用于统计记录崩溃的数据
|
||||||
*/
|
*/
|
||||||
@ -9,7 +14,7 @@ public class CrashSaveBean {
|
|||||||
private long enterRoom;//进入房间次数
|
private long enterRoom;//进入房间次数
|
||||||
private long slidingRoom;//滑动直播间次数
|
private long slidingRoom;//滑动直播间次数
|
||||||
private long playSvga;//加载播放svga次数
|
private long playSvga;//加载播放svga次数
|
||||||
private long activitySize;//Activity数量
|
private List<WeakReference<Activity>> activities;//Activity数量
|
||||||
|
|
||||||
private CrashSaveBean() {
|
private CrashSaveBean() {
|
||||||
|
|
||||||
@ -54,12 +59,18 @@ public class CrashSaveBean {
|
|||||||
slidingRoom++;
|
slidingRoom++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getActivitySize() {
|
public String getActivitySize() {
|
||||||
return activitySize;
|
StringBuilder builder=new StringBuilder();
|
||||||
|
for (WeakReference<Activity> activity : activities) {
|
||||||
|
if(activity.get()!=null){
|
||||||
|
builder.append(activity.get()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActivitySize(long activitySize) {
|
public void setActivitySize(List<WeakReference<Activity>> activitySize) {
|
||||||
this.activitySize = activitySize;
|
this.activities = activitySize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user