Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a504417 authored by Jan Nordqvist's avatar Jan Nordqvist
Browse files

Fixed bad serialization code in ScanResult.

Bug: 26964162
Change-Id: Ie9ad65936ab5173533773e5a711bcb81799acfb5
parent fd600b11
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);
                    }
                }