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

Commit 10a71f33 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

A shot at fixing bug in parceling of EntitySet

We'll need to keep watching for this bug, because I could
not reproduce it.  The fix is just the best guess after
and armchair investigation.

Bug: 2498937
Change-Id: Ic42cecc5ce79504e645bd07fb80d3ac0f53b3bed
parent 2032ac32
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -319,9 +319,10 @@ public class EntitySet extends ArrayList<EntityDelta> implements Parcelable {
    }

    public void readFromParcel(Parcel source) {
        final ClassLoader loader = getClass().getClassLoader();
        final int size = source.readInt();
        for (int i = 0; i < size; i++) {
            this.add(source.<EntityDelta> readParcelable(null));
            this.add(source.<EntityDelta> readParcelable(loader));
        }
    }