修复社区选择排序问题

This commit is contained in:
chenjuntao
2019-04-02 09:59:12 +08:00
parent 5829f09f8c
commit bdee17ffc4

View File

@ -2,6 +2,7 @@ package com.gh.gamecenter.qa.select
import android.app.Application
import com.gh.common.AppExecutor
import com.gh.common.util.PackageHelper
import com.gh.common.util.UrlFilterUtils
import com.gh.gamecenter.baselist.ListViewModel
import com.gh.gamecenter.packagehelper.PackageRepository
@ -24,7 +25,8 @@ class OpenedViewModel(application: Application) : ListViewModel<AskGameSelectEnt
for (game in selectList) {
var thisGameIsInstalled = false
for (installGame in PackageRepository.gameInstalled) {
if (installGame.id == game.game.id) {
if (installGame.id == game.game.id
&& !PackageHelper.downloadPackageNameBlackList.contains(installGame.packageName)) {
thisGameIsInstalled = true
break
}