Skip to content

Commit

Permalink
fix: android opening two download stream of the bundle
Browse files Browse the repository at this point in the history
When calling `u.openStream();` the bundle starts downloading again because of the stream has already open on 9th line above in the `connection.getContentLength();`
  • Loading branch information
ludufre committed Feb 4, 2024
1 parent 27a7f99 commit 8ee743a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ private File downloadFile(
int percent = 0;
this.notifyDownload(id, 10);
try (
final InputStream is = u.openStream();
final InputStream is = connection.getInputStream();
final DataInputStream dis = new DataInputStream(is);
final FileOutputStream fos = new FileOutputStream(target)
) {
Expand Down

0 comments on commit 8ee743a

Please sign in to comment.