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

Commit d467da73 authored by Isha Bobra's avatar Isha Bobra Committed by Stanley Tng
Browse files

The file CachedBluetoothDeviceManager.java performs synchronization

at class level. This CL just adds the missing synchronization bits.

Test: Manual
Change-Id: I71e0a194f8d126c2898a4086d6bcb62156cab9ad
Bug: 77849851
parent f78b8ce2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public class CachedBluetoothDeviceManager {
     * @return the cached device object for this device, or null if it has
     *   not been previously seen
     */
    public CachedBluetoothDevice findDevice(BluetoothDevice device) {
    public synchronized CachedBluetoothDevice findDevice(BluetoothDevice device) {
        for (CachedBluetoothDevice cachedDevice : mCachedDevices) {
            if (cachedDevice.getDevice().equals(device)) {
                return cachedDevice;