feat: 使用独立的数据库来存已安装的畅玩游戏

This commit is contained in:
juntao
2022-07-06 15:47:24 +08:00
parent 1e7edd9e85
commit cf12312d97
22 changed files with 286 additions and 118 deletions

View File

@ -451,8 +451,10 @@ public class BindingAdapters {
case INSTALL_NORMAL:
if (gameEntity.getApk().size() == 1) {
DownloadEntity downloadEntity = DownloadManager.getInstance().getDownloadEntitySnapshot(gameEntity);
String packageName = gameEntity.getApk().get(0).getPackageName();
if (gameEntity.isVGame()) {
VHelper.installOrLaunch((AppCompatActivity) v.getContext(), gameEntity.getApk().get(0).getPackageName());
VHelper.installOrLaunch((AppCompatActivity) v.getContext(), packageName);
return;
}