Loading app/src/main/java/org/lineageos/updater/download/HttpURLConnectionClient.java +1 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,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) { Loading Loading
app/src/main/java/org/lineageos/updater/download/HttpURLConnectionClient.java +1 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,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) { Loading