Skip to content

Commit

Permalink
Merge pull request #68 from Jiiiiiin/feature/handler_download_service…
Browse files Browse the repository at this point in the history
…_isRunning_status_not_reset_on_def_dilaog_close_btn_tap

解决用户还没有点击更新,就去动mDownloadBinder,导致的空指针bug
  • Loading branch information
WVector authored Apr 7, 2018
2 parents f21fe3c + 8fe37fe commit 4d08b8e
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 4d08b8e

Please sign in to comment.