UpdateManager.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:JKCloud 作者:
/**
 * 显示软件下载对话框
 */
@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();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号