commit | 554beb58dbfb0eccf4304fd5c58b0e2a9331bf27 | [log] [tgz] |
---|---|---|
author | Anil Muthineni <anilmuthineni@google.com> | Fri Jun 26 16:31:00 2015 -0700 |
committer | Anil Muthineni <anilmuthineni@google.com> | Fri Jun 26 16:31:00 2015 -0700 |
tree | 3f7e220aec6a94cc111a44a62ec3f01d12ec5aba | |
parent | 450176c52cb42d77764b6cacb7988fa8a6ebfde4 [diff] |
Write size of operators in writeToParcel() - So that the operators are read correctly while reading from parcel. Bug: 21563489 Change-Id: Icb5571a261144810f075855372791d4291255eec
diff --git a/telephony/java/com/android/internal/telephony/CellNetworkScanResult.java b/telephony/java/com/android/internal/telephony/CellNetworkScanResult.java index c708c14..5a6bd1d 100644 --- a/telephony/java/com/android/internal/telephony/CellNetworkScanResult.java +++ b/telephony/java/com/android/internal/telephony/CellNetworkScanResult.java
@@ -88,6 +88,7 @@ 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); }