更改游戏安装引导显示逻辑

This commit is contained in:
leafwai
2021-08-31 20:57:16 +08:00
parent b764a43abe
commit 20149b6041
5 changed files with 12 additions and 56 deletions

View File

@ -272,19 +272,4 @@ public class GameUtils {
}
return null;
}
public static boolean checkDownloadStatus(Context context, GameEntity gameEntity, DownloadStatus downloadStatus){
DownloadEntity downloadEntity;
for (ApkEntity apkEntity : gameEntity.getApk()) {
// filter by packageName
downloadEntity = DownloadManager.getInstance(context).getDownloadEntityByUrl(apkEntity.getUrl());
if (downloadEntity != null) {
if (downloadEntity.getStatus().equals(downloadStatus)){
return true;
}
}
}
return false;
}
}