fix: 修复部分位置无法触发畅玩游戏丢失重下载的问题

This commit is contained in:
juntao
2022-06-24 16:29:30 +08:00
parent f9a2d56acc
commit e715a46285
3 changed files with 16 additions and 1 deletions

View File

@ -451,6 +451,11 @@ public class BindingAdapters {
case INSTALL_NORMAL:
if (gameEntity.getApk().size() == 1) {
DownloadEntity downloadEntity = DownloadManager.getInstance().getDownloadEntitySnapshotByUrl(gameEntity.getApk().get(0).getUrl());
if (gameEntity.isVGame()) {
VHelper.installOrLaunch((AppCompatActivity) v.getContext(), gameEntity.getApk().get(0).getPackageName());
return;
}
if (downloadEntity != null) {
PackageInstaller.install(v.getContext(), downloadEntity);
}