Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ public static String copyFile(Context context, Uri uri, File destFile) throws IO
if (in != null) {
out = new FileOutputStream(destFile);
byte[] buffer = new byte[1024];
while (in.read(buffer) > 0) {
out.write(buffer);
int len;
while ((len = in.read(buffer)) > 0) {
out.write(buffer, 0, len);
}
out.close();
in.close();
Expand Down