实名认证弹窗(未完)

This commit is contained in:
Jack
2020-04-22 18:55:05 +08:00
parent 98b4d9f95d
commit a29e56543b
7 changed files with 198 additions and 69 deletions

View File

@ -365,32 +365,20 @@ public class BindingAdapters {
break;
case NORMAL:
case PLUGIN:
String msg = gameEntity.getVersionNumberString();
if (gameEntity.getApk().size() == 1) {
ApkEntity apk = gameEntity.getApk().get(0);
DownloadDialogHelper.findAvailableDialogAndShow(v.getContext(), gameEntity, apk,
() -> {
if (gameEntity.isShowVersionNumber()) {
DialogUtils.showVersionNumberDialog(v.getContext(), msg, () -> {
DialogUtils.checkDownload(v.getContext(), apk.getSize(),
isSubscribe -> download(progressBar, gameEntity, traceEvent, isSubscribe, entrance, location));
});
} else {
DialogUtils.showVersionNumberDialog(v.getContext(), gameEntity, () -> {
DialogUtils.checkDownload(v.getContext(), apk.getSize(),
isSubscribe -> download(progressBar, gameEntity, traceEvent, isSubscribe, entrance, location));
}
});
});
} else {
if (gameEntity.isShowVersionNumber()) {
DialogUtils.showVersionNumberDialog(v.getContext(), msg, () -> {
DownloadDialog.getInstance(v.getContext()).showPopupWindow(v, gameEntity,
entrance, location + gameEntity.getName(), traceEvent);
});
} else {
DialogUtils.showVersionNumberDialog(v.getContext(), gameEntity, () -> {
DownloadDialog.getInstance(v.getContext()).showPopupWindow(v, gameEntity,
entrance, location + gameEntity.getName(), traceEvent);
}
});
}
break;
case LAUNCH_OR_OPEN: