I want to give a PR, but build by error: Error:(3, 0) Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactory
The code logic seens error by that:
When I call downloadManager.release(), I mean to release the resources. But the DownloadDispatcher delete the files which has always been downloaded. Correct it by judge the download state:
if (mQuit) {
if(mRequest != null) {
mRequest.finish();
// don't remove files that have been downloaded sucessfully.
if(mRequest.getDownloadState() != DownloadManager.STATUS_SUCCESSFUL) {
updateDownloadFailed(DownloadManager.ERROR_DOWNLOAD_CANCELLED, "Download cancelled");
}
mTimer.cancel();
}
return;
}
continue;
}
I want to give a PR, but build by error: Error:(3, 0) Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactory
The code logic seens error by that: When I call downloadManager.release(), I mean to release the resources. But the DownloadDispatcher delete the files which has always been downloaded. Correct it by judge the download state: