Updater: Fix broken download ETA/progress
Change-Id: I1d7b5ecf7779d08c5d617d8c0950b24fbe7d0733
This commit is contained in:
committed by
Łukasz Patron
parent
e6edfaab94
commit
3cb130d40a
@@ -282,7 +282,7 @@ public class HttpURLConnectionClient implements DownloadClient {
|
||||
InputStream inputStream = mClient.getInputStream();
|
||||
OutputStream outputStream = new FileOutputStream(mDestination, mResume)
|
||||
) {
|
||||
mTotalBytes = mClient.getContentLength() + mTotalBytesRead;
|
||||
mTotalBytes = mClient.getContentLengthLong() + mTotalBytesRead;
|
||||
byte[] b = new byte[8192];
|
||||
int count;
|
||||
while (!isInterrupted() && (count = inputStream.read(b)) > 0) {
|
||||
|
Reference in New Issue
Block a user