修复因改版造成的下载数据(新)下载事件缺失的问题 https://gitlab.ghzs.com/pm/halo-app-issues/-/issues/877

This commit is contained in:
chenjuntao
2020-05-25 17:03:57 +08:00
parent 03fa2052da
commit ad059fe18d
13 changed files with 55 additions and 80 deletions

View File

@ -16,6 +16,7 @@ import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.core.view.ViewCompat;
import androidx.databinding.BindingAdapter;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
@ -627,9 +628,6 @@ public class BindingAdapters {
if (TextUtils.isEmpty(msg)) {
DataUtils.onGameDownloadEvent(progressBar.getContext(), gameEntity.getName(), apkEntity.getPlatform(), entrance, "下载开始", method);
ExposureUtils.DownloadType downloadType = ExposureUtils.getDownloadType(apkEntity, method);
ExposureEvent downloadExposureEvent = ExposureUtils.logADownloadExposureEvent(gameEntity, apkEntity.getPlatform(), traceEvent, downloadType);
DownloadManager.createDownload(progressBar.getContext(),
apkEntity,
gameEntity,
@ -637,7 +635,7 @@ public class BindingAdapters {
entrance,
location + gameEntity.getName(),
isSubscribe,
downloadExposureEvent);
traceEvent);
progressBar.setProgress(0);
progressBar.setDownloadType("插件化".equals(method) ?