Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 385716f8 authored by Hiroki Sato's avatar Hiroki Sato Committed by Android (Google) Code Review
Browse files

Merge "Fix SeekableAutoCloseInputStream#read with len=0" into main

parents aa5e46e2 dc3bb384
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -419,6 +419,10 @@ public class AssetFileDescriptor implements Parcelable, Closeable {
            if (available <= 0) {
                return -1;
            }
            if (count == 0) {
                // Java's InputStream explicitly specifies that this returns zero.
                return 0;
            }

            if (count > available) count = available;
            try {