完成需求 MTA 补充需求

This commit is contained in:
chenjuntao
2019-05-17 17:27:42 +08:00
parent 073c35ca08
commit d3e13dd8c6
2 changed files with 55 additions and 3 deletions

View File

@ -360,9 +360,16 @@ public class DialogUtils {
} else if (NetworkUtils.isWifiConnected(context) || filter4GorSize(context, size)) {
callBack.onResponse(false);
} else {
MtaHelper.onEvent("移动网络下载", NetworkUtils.getMobileNetworkType(context), "出现弹窗提示");
showDownloadDialog(context,
() -> callBack.onResponse(false),
() -> callBack.onResponse(true));
() -> {
callBack.onResponse(false);
MtaHelper.onEvent("移动网络下载", NetworkUtils.getMobileNetworkType(context), "立即下载");
},
() -> {
callBack.onResponse(true);
MtaHelper.onEvent("移动网络下载", NetworkUtils.getMobileNetworkType(context), "连上WiFi后自动下载");
});
}
}
@ -841,7 +848,7 @@ public class DialogUtils {
}
/**
* @param options 供以显示的选项
* @param options 供以显示的选项
* @param disabledOptions 显示为灰色的选项(是 options 的子集)
*/
public static void showListDialog(Context context,