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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user