fix: 修复列表游戏的安装状态更新问题

This commit is contained in:
chenjuntao
2024-06-27 16:19:16 +08:00
parent 4d2d3d24ee
commit 3bd0444dde

View File

@ -426,6 +426,7 @@ object PackageRepository {
fun addInstalledGame(pkgName: String,
cachedGameEntity: GameEntity? = null) {
mInstalledPkgSet.add(pkgName)
notifyInstallPkgData()
if (cachedGameEntity != null) {
val ghId = PackageUtils.getMetaData(HaloApp.getInstance().application, pkgName, "gh_id")
@ -439,8 +440,6 @@ object PackageRepository {
if (containsUpdate) {
notifyGameUpdateData()
}
notifyInstallPkgData()
} else {
val list = arrayListOf(pkgName)