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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user