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

am: ee1720cffa

Change-Id: Ic58da2c810298c614644780f2cd175f63857c219
This commit is contained in:
robinz1x
2018-12-10 15:37:30 -08:00
committed by android-build-merger

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");
}
}