Merge branch 'dev-4.7.0' of git.ghzs.com:halo/assistant-android into dev-4.7.0

This commit is contained in:
张玉久
2021-02-01 16:14:26 +08:00
41 changed files with 265 additions and 116 deletions

View File

@ -134,7 +134,7 @@ public class DownloadItemUtils {
// 已预约
holder.gameDownloadBtn.setVisibility(View.VISIBLE);
holder.gameDownloadBtn.setText("已预约");
holder.gameDownloadBtn.setTextColor(ContextCompat.getColor(holder.gameDes.getContext(),R.color.aaaaaa));
holder.gameDownloadBtn.setTextColor(ContextCompat.getColor(holder.gameDes.getContext(), R.color.aaaaaa));
holder.gameDownloadBtn.setBackgroundResource(R.drawable.button_round_f5f5f5);
}
}
@ -580,7 +580,9 @@ public class DownloadItemUtils {
final String location,
@Nullable final ExposureEvent traceEvent) {
String str = downloadBtn.getText().toString();
ApkEntity apk = gameEntity.getApk().get(0);
if (gameEntity.getApk().isEmpty()) return;
ApkEntity apk = ExtensionsKt.safelyGetInRelease(gameEntity.getApk(), 0);
if (apk == null) return;
if (str.equals(context.getString(R.string.download))) {
// 先弹下载弹窗(如果需要的话)