游戏下载弹窗:试玩提醒与设备提醒 20200409补充 https://gitlab.ghzs.com/pm/halo-app-issues/issues/818
This commit is contained in:
@ -450,10 +450,8 @@ public class DownloadItemUtils {
|
||||
clickCallback.onCallback();
|
||||
}
|
||||
PermissionHelper.checkStoragePermissionBeforeAction(context, () -> {
|
||||
String str = downloadBtn.getText().toString();
|
||||
if (str.equals(context.getString(R.string.attempt))) {
|
||||
String msg = gameEntity.getVersionNumber().equals("无版号-有内购") ? context.getString(R.string.attempt_tips_1) :
|
||||
context.getString(R.string.attempt_tips_2);
|
||||
if (gameEntity.isShowVersionNumber()) {
|
||||
String msg = gameEntity.getVersionNumberString();
|
||||
DialogUtils.showVersionNumberDialog(context, msg, () -> {
|
||||
DownloadDialog.getInstance(context).showPopupWindow(v, gameEntity, entrance, location, traceEvent);
|
||||
});
|
||||
@ -496,14 +494,18 @@ public class DownloadItemUtils {
|
||||
|
||||
DataLogUtils.uploadGameLog(context, gameEntity.getId(), gameEntity.getName(), entrance);
|
||||
} else if (str.equals(context.getString(R.string.attempt))) {
|
||||
String msg = gameEntity.getVersionNumber().equals("无版号-有内购") ? context.getString(R.string.attempt_tips_1) :
|
||||
context.getString(R.string.attempt_tips_2);
|
||||
String msg = gameEntity.getVersionNumberString();
|
||||
|
||||
DownloadDialogHelper.findAvailableDialogAndShow(context, gameEntity, apk, () -> {
|
||||
DialogUtils.showVersionNumberDialog(context, msg, () -> {
|
||||
if (gameEntity.isShowVersionNumber()) {
|
||||
DialogUtils.showVersionNumberDialog(context, msg, () -> {
|
||||
DialogUtils.checkDownload(context, apk.getSize(),
|
||||
isSubscribe -> download(context, gameEntity, downloadBtn, entrance, location, isSubscribe, traceEvent));
|
||||
});
|
||||
} else {
|
||||
DialogUtils.checkDownload(context, apk.getSize(),
|
||||
isSubscribe -> download(context, gameEntity, downloadBtn, entrance, location, isSubscribe, traceEvent));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
DataLogUtils.uploadGameLog(context, gameEntity.getId(), gameEntity.getName(), entrance);
|
||||
|
||||
Reference in New Issue
Block a user