Fixed bad serialization code in ScanResult.

am: 7a504417f2

* commit '7a504417f23a1388d2a9bf53f0871d274e70c6b2':
  Fixed bad serialization code in ScanResult.
This commit is contained in:
Jan Nordqvist
2016-02-03 23:06:58 +00:00
committed by android-build-merger

View File

@@ -569,6 +569,9 @@ public class ScanResult implements Parcelable {
dest.writeString(anqpLines.get(i));
}
}
else {
dest.writeInt(0);
}
if (anqpElements != null) {
dest.writeInt(anqpElements.length);
for (AnqpInformationElement element : anqpElements) {
@@ -647,7 +650,7 @@ public class ScanResult implements Parcelable {
int len = in.readInt();
byte[] payload = new byte[len];
in.readByteArray(payload);
sr.anqpElements[n] =
sr.anqpElements[i] =
new AnqpInformationElement(vendorId, elementId, payload);
}
}