修复游戏列表下载状态异常问题

This commit is contained in:
kehaoyuan
2019-01-17 15:25:48 +08:00
parent c5be98adc2
commit c99ae6db3e
4 changed files with 9 additions and 12 deletions

View File

@ -9,7 +9,6 @@ import android.widget.TextView;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.R;
import com.gh.gamecenter.entity.ApkEntity;
import com.gh.gamecenter.entity.GameCollectionEntity;
import com.gh.gamecenter.entity.GameEntity;
import com.gh.gamecenter.entity.GameUpdateEntity;
import com.gh.gamecenter.entity.PluginLocation;
@ -73,13 +72,7 @@ public class GameUtils {
Object gh_id;
for (ApkEntity apkEntity : gameEntity.getApk()) {
// 去除下载合集判断
boolean isCollection = false;
for (GameCollectionEntity collectionEntity : gameEntity.getCollection()) {
if (collectionEntity.getPackage().contains(apkEntity.getPackageName()))
isCollection = true;
}
if (isCollection) continue;
// todo filter by packageName
downloadEntity = DownloadManager.getInstance(context).getDownloadEntityByUrl(apkEntity.getUrl());
if (downloadEntity != null) {