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

Commit d828a596 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Bluetooth ScanFilter: Allow null in setDeviceAddress" am: 561b4c8aad

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702025

Change-Id: I39d0a65cea4799f719d7d3111ad254d57da05825
parents f7fb9827 f5cb1b0e
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);
        }