fix ScanResult read from parcel, this function was broken and causes wifi settings to crash

Bug: 17293156

Change-Id: I5f7a8141adb21103e98913c9802d8364164eaba7
This commit is contained in:
vandwalle
2014-08-27 01:00:11 -07:00
committed by Pierre Vandwalle
parent 80e29b66c5
commit b1dce0220b

View File

@@ -354,6 +354,7 @@ public class ScanResult implements Parcelable {
sr.autoJoinStatus = in.readInt();
sr.untrusted = in.readInt() != 0;
sr.numConnection = in.readInt();
sr.numUsage = in.readInt();
int n = in.readInt();
if (n != 0) {
sr.informationElements = new InformationElement[n];