游戏下载弹窗:试玩提醒与设备提醒 20200409补充 https://gitlab.ghzs.com/pm/halo-app-issues/issues/818
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user