Skip to content

Commit dd591a9

Browse files
committed
Rebase master and nit changes
1 parent 8c3ed88 commit dd591a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Parse/src/main/java/com/parse/ParseAWSRequest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected Task<Void> onResponseAsync(final ParseHttpResponse response,
4949
@Override
5050
public Void call() throws Exception {
5151
long totalSize = response.getTotalSize();
52-
int downloadedSize = 0;
52+
long downloadedSize = 0;
5353
InputStream responseStream = null;
5454
try {
5555
responseStream = response.getContent();
@@ -62,7 +62,8 @@ public Void call() throws Exception {
6262
tempFileStream.write(data, 0, nRead);
6363
downloadedSize += nRead;
6464
if (downloadProgressCallback != null && totalSize != -1) {
65-
int progressToReport = Math.round((float) downloadedSize / (float) totalSize * 100.0f);
65+
int progressToReport =
66+
Math.round((float) downloadedSize / (float) totalSize * 100.0f);
6667
downloadProgressCallback.done(progressToReport);
6768
}
6869
}

0 commit comments

Comments
 (0)