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

Extract some variables into the DownloadResponse & Fix some issues fo… #114

Open Locke93 opened 6 years ago

Locke93 commented 6 years ago
  1. Refactor code: extract some variables into the download response `

    • private int mResponseCode;
    • private String mResponseMessage;
    • private String mErrorMessage;
    • private String mTransferEncoding;
    • private long mContentLength;
    • private long mRangeLength;
    • private String mLocation; `
  2. Fixed some issues for resumable download feature

    • Fixed shouldn't add "Range" when request.isResumable() is false
    • Fixed accessFile.seek shouldn't seek to cacheSize when request.isResumable() is false