Merge "DropBoxManager: use BufferedInputStream when using GZIPInputStream" am: 92889d10fe am: afeee6a12b am: 506bf91d21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1786608 Change-Id: I64c788061fb707b4e4b0266764e4a3da779fdc0e
This commit is contained in:
@@ -34,6 +34,7 @@ import android.util.Log;
|
||||
|
||||
import com.android.internal.os.IDropBoxManagerService;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
@@ -257,7 +258,8 @@ public class DropBoxManager {
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
return (mFlags & IS_GZIPPED) != 0 ? new GZIPInputStream(is) : is;
|
||||
return (mFlags & IS_GZIPPED) != 0
|
||||
? new GZIPInputStream(new BufferedInputStream(is)) : is;
|
||||
}
|
||||
|
||||
public static final @android.annotation.NonNull Parcelable.Creator<Entry> CREATOR = new Parcelable.Creator() {
|
||||
|
||||
Reference in New Issue
Block a user