光环助手V3.6.1 RELEASE(20190125-1850)测试问题汇总(4.5.9.10.13) https://gitlab.ghzhushou.com/pm/halo-app-issues/issues/442#note_16676

This commit is contained in:
kehaoyuan
2019-01-28 11:31:13 +08:00
parent 8ad3420822
commit 6d6574988c
4 changed files with 39 additions and 15 deletions

View File

@ -14,6 +14,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.gh.common.constant.Config;
import com.gh.common.constant.ItemViewType;
import com.gh.common.util.ApkActiveUtils;
import com.gh.common.util.BitmapUtils;
@ -36,6 +37,7 @@ import com.gh.gamecenter.adapter.viewholder.GameNormalSwipeViewHolder;
import com.gh.gamecenter.entity.ApkEntity;
import com.gh.gamecenter.entity.GameEntity;
import com.gh.gamecenter.entity.GameInstall;
import com.gh.gamecenter.entity.SettingsEntity;
import com.gh.gamecenter.kuaichuan.FileInfo;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
@ -99,6 +101,18 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
}
public void initData(List<GameInstall> list) {
SettingsEntity settings = Config.getSettings();
if (settings != null) {
for (String pkgName : settings.getGameDownloadBlackList()) {
for (int i = 0; i < list.size(); i++) {
GameInstall gameInstall = list.get(i);
if (gameInstall.getPackageName().equals(pkgName)) {
list.remove(gameInstall);
}
}
}
}
for (GameInstall gameInstall : list) {
Object gh_id = PackageUtils.getMetaData(mContext, gameInstall.getPackageName(), "gh_id");
if (gh_id != null && !gh_id.equals(gameInstall.getId())) {