Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决用户还没有点击更新,就去动mDownloadBinder,导致的空指针bug #68

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ public void onClick(View view) {
}

public void cancelDownloadService() {
mDownloadBinder.stop("取消下载");
if (mDownloadBinder != null) {
// 标识用户已经点击了更新,之后点击取消
mDownloadBinder.stop("取消下载");
}
}

private void installApp() {
Expand Down