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

Commit 3586e3e0 authored by Gyumin Sim's avatar Gyumin Sim
Browse files

Fix ParcelableListBinder to send empty list

Bug: 185058759
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Change-Id: I9a846472d74be52e186d9e7bd5def7edbc50ad56
parent aa36363f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class ParcelableListBinder<T extends Parcelable> extends Binder {
            throws RemoteException {
        int count = list.size();
        int i = 0;
        while (i < count) {
        do {
            Parcel data = Parcel.obtain();
            Parcel reply = Parcel.obtain();
            if (i == 0) {
@@ -126,6 +126,6 @@ public class ParcelableListBinder<T extends Parcelable> extends Binder {
            binder.transact(FIRST_CALL_TRANSACTION, data, reply, 0);
            reply.recycle();
            data.recycle();
        }
        } while (i < count);
    }
}