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

Commit 22dac994 authored by Steven Moreland's avatar Steven Moreland
Browse files

Revert "Parcel: readValue harder error"

This reverts commit e6e4f3d6.

Reason for revert: some appcompat issues b/384586487#comment48

Change-Id: I1f83e28979b3762e56e410353a96194f0c7ada9b
parent e6e4f3d6
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -4623,11 +4623,9 @@ public final class Parcel {
            object = readValue(type, loader, clazz, itemTypes);
            int actual = dataPosition() - start;
            if (actual != length) {
                String error = "Unparcelling of " + object + " of type "
                                + Parcel.valueTypeToString(type) + "  consumed " + actual
                                + " bytes, but " + length + " expected.";
                Slog.wtfStack(TAG, error);
                throw new BadParcelableException(error);
                Slog.wtfStack(TAG,
                        "Unparcelling of " + object + " of type " + Parcel.valueTypeToString(type)
                                + "  consumed " + actual + " bytes, but " + length + " expected.");
            }
        } else {
            object = readValue(type, loader, clazz, itemTypes);