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

Commit 82ac88fb authored by Nick Kralevich's avatar Nick Kralevich Committed by Android (Google) Code Review
Browse files

Merge "Parcel_host.java: match Parcel.java error conditions better" into main

parents 64b88f1a f7105afe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -164,6 +164,9 @@ public class Parcel_host {
        p.mPos = pos;
    }
    public static void nativeSetDataCapacity(long nativePtr, int size) {
        if (size < 0) {
            throw new IllegalArgumentException("size < 0: size=" + size);
        }
        var p = getInstance(nativePtr);
        if (p.getCapacity() < size) {
            p.forceSetCapacity(size);