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

Commit 69891c1d authored by Isha Bobra's avatar Isha Bobra Committed by android-build-merger
Browse files

The file CachedBluetoothDeviceManager.java performs synchronization at class...

The file CachedBluetoothDeviceManager.java performs synchronization at class level. This CL just adds the missing synchronization bits. am: d467da73
am: b019b0b3

Change-Id: I321c60932e915520867099b80be2ac93060729e9
parents ca4ea183 b019b0b3
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;