Write size of operators in writeToParcel()

- So that the operators are read correctly while reading
  from parcel.

Bug: 21563489
Change-Id: Icb5571a261144810f075855372791d4291255eec
This commit is contained in:
Anil Muthineni
2015-06-26 16:31:00 -07:00
parent 450176c52c
commit 554beb58db

View File

@@ -88,6 +88,7 @@ public class CellNetworkScanResult implements Parcelable {
public void writeToParcel(Parcel out, int flags) {
out.writeInt(mStatus);
if (mOperators != null && mOperators.size() > 0) {
out.writeInt(mOperators.size());
for (OperatorInfo network : mOperators) {
network.writeToParcel(out, flags);
}