修复曝光事件统计插件升级时没有附带游戏名字的问题

This commit is contained in:
chenjuntao
2018-09-04 12:03:29 +08:00
parent d2e118180c
commit cd146366c0
4 changed files with 8 additions and 3 deletions

View File

@ -475,7 +475,7 @@ public class DownloadItemUtils {
//更新
private static void update(Context context, GameEntity gameEntity, String entrance, String location, @Nullable ExposureEvent traceEvent) {
DataUtils.onGameUpdateEvent(context, gameEntity.getName(), gameEntity.getApk().get(0).getPlatform(), "下载开始");
ExposureEvent downloadExposureEvent = ExposureUtils.INSTANCE.logADownloadExposureEvent(gameEntity, gameEntity.getApk().get(0).getPlatform(), traceEvent, ExposureUtils.DownloadType.UPDATE);
ExposureEvent downloadExposureEvent = ExposureUtils.logADownloadExposureEvent(gameEntity, gameEntity.getApk().get(0).getPlatform(), traceEvent, ExposureUtils.DownloadType.UPDATE);
DownloadManager.createDownload(context, gameEntity, "更新", entrance, location, downloadExposureEvent);
}

View File

@ -175,7 +175,7 @@ public class DetailViewHolder {
"下载开始",
method);
ExposureEvent downloadExposureEvent = ExposureUtils.INSTANCE.logADownloadExposureEvent(mGameEntity, apkEntity.getPlatform(), mTraceEvent, ExposureUtils.DownloadType.DOWNLOAD);
ExposureEvent downloadExposureEvent = ExposureUtils.logADownloadExposureEvent(mGameEntity, apkEntity.getPlatform(), mTraceEvent, ExposureUtils.DownloadType.DOWNLOAD);
DownloadManager.createDownload(mViewHolder.context,
apkEntity,
mGameEntity,

View File

@ -533,7 +533,7 @@ class GameUpdateFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
kv.put("版本", updateEntity.getPlatform());
kv.put("状态", "下载开始");
DataUtils.onEvent(mContext, "游戏更新", updateEntity.getName(), kv);
ExposureUtils.INSTANCE.logADownloadExposureEvent(new GameEntity(updateEntity.getId()), updateEntity.getPlatform(), null, ExposureUtils.DownloadType.UPDATE);
ExposureUtils.logADownloadExposureEvent(new GameEntity(updateEntity.getId(), updateEntity.getName()), updateEntity.getPlatform(), null, ExposureUtils.DownloadType.UPDATE);
DownloadEntity downloadEntity = new DownloadEntity();
downloadEntity.setUrl(updateEntity.getUrl());

View File

@ -219,6 +219,11 @@ class GameEntity : Parcelable {
this.id = id
}
constructor(id: String?, name: String?) {
this.id = id
this.name = name
}
protected constructor(`in`: Parcel) {
this.id = `in`.readString()
this.icon = `in`.readString()