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

Commit 810b4917 authored by Jack He's avatar Jack He Committed by Gerrit Code Review
Browse files

Merge "Check all zero address when connecting gatt"

parents fe3c0d79 ca6a76ae
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3270,6 +3270,9 @@ public final class BluetoothDevice implements Parcelable, Attributable {
            if (iGatt == null) {
                // BLE is not supported
                return null;
            } else if (NULL_MAC_ADDRESS.equals(mAddress)) {
                Log.e(TAG, "Unable to connect gatt, invalid address " + mAddress);
                return null;
            }
            BluetoothGatt gatt = new BluetoothGatt(
                    iGatt, this, transport, opportunistic, phy, mAttributionSource);