/**
* 显示软件下载对话框
*/
@SuppressLint("InflateParams")
private void showDownloadDialog() {
try {
LayoutInflater inflater = LayoutInflater.from(mContext);
View v = inflater.inflate(R.layout.update, null);
mProgress = (NumberProgressBar) v.findViewById(R.id.update_progress);
new MaterialDialog.Builder(mContext)
.title("正在下载")
.customView(v, false)
.negativeText("取消")
.onPositive((dialog, which) -> {
cancelUpdate = true;
}).show();
downloadApk();
} catch (Exception e) {
e.printStackTrace();
}
}
UpdateManager.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:JKCloud
作者:
评论列表
文章目录