smanikandan14 / ThinDownloadManager

To download files and to avoid using DOWNLOAD_WITHOUT_NOTIFICATION permission if you are using Android's DownloadManager in your apps.
Apache License 2.0
783 stars 185 forks source link

onProgress still fire (once) after onDownloadFailed via lost connection #94

Open dreasn opened 7 years ago

dreasn commented 7 years ago

I turned off any connections (wifi and mobile data) while the download still in progress. The log cat shows onProgress still fire once after onDownloadFailed.

mrStudent123 commented 7 years ago

i realized that too, so my workaround is to only update progress if the download didn't complete/fail before. Best fix would be to do this check before calling the listener in the library.