实名认证弹窗(未完)
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user