fix: 修复在那无下载的游戏打开详情页闪退的问题

This commit is contained in:
chenjuntao
2022-07-28 17:42:04 +08:00
parent c47ab8fc41
commit c58db04155

View File

@ -62,7 +62,7 @@ public class DetailDownloadUtils {
return;
}
if (viewHolder.gameEntity.isVGame()) {
if (viewHolder.gameEntity.isVGame() && !viewHolder.gameEntity.getApk().isEmpty()) {
String status = GameUtils.getDownloadBtnText(viewHolder.context, viewHolder.gameEntity, PluginLocation.only_game);
if (viewHolder.context.getString(R.string.launch).equals(status)) {
viewHolder.mDownloadPb.setDownloadType(DownloadProgressBar.DownloadType.LAUNCH_OR_OPEN);