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

Commit b019b0b3 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

Change-Id: I0c2d1b207276aad17e369eefdf041a046a08a68a
parents 563a57bc d467da73
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;