更改游戏安装引导显示逻辑
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user