游戏下载弹窗:试玩提醒与设备提醒 20200409补充 https://gitlab.ghzs.com/pm/halo-app-issues/issues/818

This commit is contained in:
Jack
2020-04-10 17:20:57 +08:00
parent 0612582a46
commit 48d6023e0d
4 changed files with 33 additions and 17 deletions

View File

@ -356,13 +356,12 @@ public class BindingAdapters {
break;
case NORMAL:
case PLUGIN:
String msg = gameEntity.getVersionNumber().equals("无版号-有内购") ? v.getContext().getString(R.string.attempt_tips_1) :
v.getContext().getString(R.string.attempt_tips_2);
String msg = gameEntity.getVersionNumberString();
if (gameEntity.getApk().size() == 1) {
ApkEntity apk = gameEntity.getApk().get(0);
DownloadDialogHelper.findAvailableDialogAndShow(v.getContext(), gameEntity, apk,
() -> {
if (gameEntity.getVersionNumber().contains("无版号")) {
if (gameEntity.isShowVersionNumber()) {
DialogUtils.showVersionNumberDialog(v.getContext(), msg, () -> {
DialogUtils.checkDownload(v.getContext(), apk.getSize(),
isSubscribe -> download(progressBar, gameEntity, traceEvent, isSubscribe, entrance, location));
@ -374,7 +373,7 @@ public class BindingAdapters {
});
} else {
if (gameEntity.getVersionNumber().contains("无版号")) {
if (gameEntity.isShowVersionNumber()) {
DialogUtils.showVersionNumberDialog(v.getContext(), msg, () -> {
DownloadDialog.getInstance(v.getContext()).showPopupWindow(v, gameEntity,
entrance, location + gameEntity.getName(), traceEvent);