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

Commit eabc8bf0 authored by Jin Seok Park's avatar Jin Seok Park
Browse files

Cannot cast Object[] to Session2Command[]

Currently, Session2CommandGroup#writeToParcel tries to cast Object[]
to Session2Command[]. This CL casts each object instead.

Bug: 122686869
Test: Will add cts in later CL
Change-Id: I1a7c1e387bdbb089ae77d729527317959e47fce2
parent bd692981
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -130,7 +130,7 @@ public final class Session2CommandGroup implements Parcelable {


    @Override
    @Override
    public void writeToParcel(Parcel dest, int flags) {
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelableArray((Session2Command[]) mCommands.toArray(), 0);
        dest.writeParcelableArray(mCommands.toArray(new Session2Command[0]), 0);
    }
    }


    /**
    /**