fix: 处理 sonar 新变动代码的异味 https://jira.shanqu.cc/browse/GHZS-920

This commit is contained in:
叶子维
2023-01-04 15:48:53 +08:00
parent a03a829980
commit b395f7c96a
11 changed files with 61 additions and 75 deletions

View File

@ -274,11 +274,7 @@ public class DetailDownloadUtils {
break;
case waiting:
viewHolder.mDownloadPb.setText(R.string.waiting);
if (downloadEntity.isPluggable() && PackagesManager.INSTANCE.isInstalled(downloadEntity.getPackageName())) {
viewHolder.mDownloadPb.setButtonStyle(DownloadButton.ButtonStyle.WAITING);
} else {
viewHolder.mDownloadPb.setButtonStyle(DownloadButton.ButtonStyle.WAITING);
}
viewHolder.mDownloadPb.setButtonStyle(DownloadButton.ButtonStyle.WAITING);
break;
case done:
if (SimulatorGameManager.isSimulatorGame(viewHolder.gameEntity)) {