Merge "Use getCompressedSizeLong to get correct size for 2G file"

This commit is contained in:
Treehugger Robot
2018-12-10 22:47:00 +00:00
committed by Gerrit Code Review

View File

@@ -200,7 +200,7 @@ class MtpManager {
}
if (objectInfo.getFormat() != MtpConstants.FORMAT_ASSOCIATION) {
if (!device.sendObject(sendObjectInfoResult.getObjectHandle(),
sendObjectInfoResult.getCompressedSize(), source)) {
sendObjectInfoResult.getCompressedSizeLong(), source)) {
throw new IOException("Failed to send contents of a document");
}
}