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

Commit 2ae2b96c authored by Gyumin Sim's avatar Gyumin Sim Committed by Android (Google) Code Review
Browse files

Merge "Fix ParcelableListBinder to send empty list" into sc-dev

parents a0acf1f6 3586e3e0
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);
    }
}