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

Commit 561b4c8a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Bluetooth ScanFilter: Allow null in setDeviceAddress"

parents 844e7e7f 025714ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -587,6 +587,10 @@ public final class ScanFilter implements Parcelable {
         * @throws IllegalArgumentException If the {@code deviceAddress} is invalid.
         */
        public Builder setDeviceAddress(String deviceAddress) {
            if (deviceAddress == null) {
                mDeviceAddress = deviceAddress;
                return this;
            }
            return setDeviceAddress(deviceAddress, BluetoothDevice.ADDRESS_TYPE_PUBLIC);
        }