Commit 6828cd00 authored by jyx's avatar jyx

代码优化

parent 648284b0
...@@ -566,7 +566,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -566,7 +566,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
} else { } else {
taskCpdDialog = TaskCpdDialog(requireActivity(), object : DialogListener() { taskCpdDialog = TaskCpdDialog(requireActivity(), object : DialogListener() {
override fun onClick(v: View?) { override fun onClick(v: View?) {
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
LogUtil.d("CPD -> clikc") LogUtil.d("CPD -> clikc")
...@@ -617,7 +617,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -617,7 +617,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
// 上报珊瑚安装完成 // 上报珊瑚安装完成
mDownloadProcess?.reportInstallSuccess(false) mDownloadProcess?.reportInstallSuccess(false)
} else { } else {
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
// 上报CPD开始安装 // 上报CPD开始安装
LogUtil.d("CPD -> install_start") LogUtil.d("CPD -> install_start")
...@@ -662,7 +662,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -662,7 +662,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
// 上报珊瑚激活完成 // 上报珊瑚激活完成
mDownloadProcess?.reportAppActivated() mDownloadProcess?.reportAppActivated()
} else { } else {
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
// 上报CPD激活完成 // 上报CPD激活完成
...@@ -683,7 +683,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -683,7 +683,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
// 上报珊瑚激活完成 // 上报珊瑚激活完成
mDownloadProcess?.reportAppActivated() mDownloadProcess?.reportAppActivated()
} else { } else {
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
// 上报CPD激活完成 // 上报CPD激活完成
LogUtil.d("CPD -> activation") LogUtil.d("CPD -> activation")
...@@ -734,7 +734,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -734,7 +734,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
} else { } else {
LogUtil.d("CPD -> onDownloadStart") LogUtil.d("CPD -> onDownloadStart")
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
// 上报CPD下载开始 // 上报CPD下载开始
taskPresenter.cmtImp(trackerBean.download_start[0]) taskPresenter.cmtImp(trackerBean.download_start[0])
...@@ -755,7 +755,7 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -755,7 +755,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
} else { } else {
LogUtil.d("CPD -> onDownloadSuccess") LogUtil.d("CPD -> onDownloadSuccess")
val trackerBean = mFakeTaskList[position].trackerBean val trackerBean = mFakeTaskList[position].trackerListBean
if (trackerBean != null) { if (trackerBean != null) {
// 上报CPD下载成功 // 上报CPD下载成功
taskPresenter.cmtImp(trackerBean.download_finish[0]) taskPresenter.cmtImp(trackerBean.download_finish[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment