Merge "Close the GZIPOutputStream to release the deflater" into sc-dev am: 1325fdd07a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13957818

Change-Id: Ib7ef925a9388244cc89fdc19b4940d04ac419d23
This commit is contained in:
Jing Ji
2021-03-23 05:08:57 +00:00
committed by Automerger Merge Worker

View File

@@ -448,7 +448,7 @@ public final class DropBoxManagerService extends SystemService {
final GZIPOutputStream gzipOutputStream =
new GZIPOutputStream(new FileOutputStream(fd));
FileUtils.copy(in, gzipOutputStream);
gzipOutputStream.finish();
gzipOutputStream.close();
} else {
FileUtils.copy(in, new FileOutputStream(fd));
}