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

This commit is contained in:
Gyumin Sim
2021-04-20 06:01:49 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}