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

Commit 8392aabf authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update parcel read for ScanFilter"

parents d0e73760 49837f2d
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -291,10 +291,10 @@ public final class ScanFilter implements Parcelable {

            // Advertising data type
            int advertisingDataType = in.readInt();
            if (advertisingDataType != -1) {
            if (in.readInt() == 1) {
                byte[] advertisingData = null;
                byte[] advertisingDataMask = null;
                if (in.readInt() == 1) {

                int advertisingDataLength = in.readInt();
                advertisingData = new byte[advertisingDataLength];
                in.readByteArray(advertisingData);
@@ -303,7 +303,6 @@ public final class ScanFilter implements Parcelable {
                    advertisingDataMask = new byte[advertisingDataMaskLength];
                    in.readByteArray(advertisingDataMask);
                }
                }
                builder.setAdvertisingDataWithType(advertisingDataType, advertisingData,
                        advertisingDataMask);
            }