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

Commit faf2488f authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Synchronize the removal of the addresses" into main

parents f36e5448 03821046
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1154,6 +1154,7 @@ public class RemoteDevices {
                        Utils.getTempAllowlistBroadcastOptions());
            } else if (device.getBondState() == BluetoothDevice.BOND_NONE) {
                String key = Utils.getAddressStringFromByte(address);
                synchronized (mDevices) {
                    mDevices.remove(key);
                    mDeviceQueue.remove(key); // Remove from LRU cache

@@ -1161,6 +1162,7 @@ public class RemoteDevices {
                    mDualDevicesMap.values().remove(key);
                    mDualDevicesMap.remove(key);
                }
            }
            if (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_TURNING_OFF) {
                mAdapterService.notifyAclDisconnected(device, transportLinkType);
                intent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED);