修复镜像游戏的包 id 与原游戏 id 不一时出现的按钮状态不变更问题

This commit is contained in:
juntao
2021-01-19 17:10:18 +08:00
parent 7e7cc38d6d
commit 150109cef4

View File

@ -116,7 +116,10 @@ public class GameUtils {
&& !PackageUtils.isSignedByGh(context, apkEntity.getPackageName())
&& apkEntity.isShowPlugin(pluginLocation)) {
pluginCount++;
} else if (gh_id == null || gh_id.equals(gameEntity.getId())) {
} else if (gh_id == null
|| gh_id.equals(gameEntity.getId())
// 当使用镜像时,可能会存在镜像 gh_id 与当前游戏 id 不一样的情况,这时也让它通过,避免装完还是显示`下载`
|| gameEntity.shouldUseMirrorInfo()) {
installCount++;
}
}