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

@ -107,6 +107,11 @@ public class GameUtils {
downloadEntity = DownloadManager.getInstance().getDownloadEntitySnapshot(gameEntity);
// 在下载管理找不到下载实体,并且为畅玩游戏的时候到畅玩数据库里找
if (downloadEntity == null && gameEntity.isVGame()) {
downloadEntity = VHelper.getDownloadEntitySnapshotByPackageName(apkEntity.getPackageName());
}
if (downloadEntity != null) {
if (downloadEntity.getStatus().equals(DownloadStatus.done)) {
doneCount++;