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

Commit ede69419 authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Allow the Bluetooth MAC address to be updated asynchronously (1/3)" am:...

Merge "Allow the Bluetooth MAC address to be updated asynchronously (1/3)" am: 935d466b am: ba3c1aef
am: c0d83419

Change-Id: Ida1e34b7f856498c076584e5cbbe474b1898a57b
parents 64e89ea1 c0d83419
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -571,7 +571,13 @@ class AdapterProperties {
                        break;
                    case AbstractionLayer.BT_PROPERTY_BDADDR:
                        mAddress = val;
                        debugLog("Address is:" + Utils.getAddressStringFromByte(mAddress));
                        String address = Utils.getAddressStringFromByte(mAddress);
                        debugLog("Address is:" + address);
                        intent = new Intent(BluetoothAdapter.ACTION_BLUETOOTH_ADDRESS_CHANGED);
                        intent.putExtra(BluetoothAdapter.EXTRA_BLUETOOTH_ADDRESS, address);
                        intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
                        mService.sendBroadcastAsUser(
                                intent, UserHandle.ALL, mService.BLUETOOTH_PERM);
                        break;
                    case AbstractionLayer.BT_PROPERTY_CLASS_OF_DEVICE:
                        mBluetoothClass = Utils.byteArrayToInt(val, 0);