Merge "Update the Bluetooth Active Device state in the Device Manager"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a0de28d0de
@@ -185,14 +185,6 @@ public abstract class BluetoothDeviceUpdater implements BluetoothCallback {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
||||||
Collection<CachedBluetoothDevice> cachedDevices =
|
|
||||||
mLocalManager.getCachedDeviceManager().getCachedDevicesCopy();
|
|
||||||
// TODO: The state update of the Cached Bluetooth Devices should be
|
|
||||||
// moved to the device manager: b/72316092
|
|
||||||
for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) {
|
|
||||||
boolean isActive = Objects.equals(cachedBluetoothDevice, activeDevice);
|
|
||||||
cachedBluetoothDevice.setActiveDevice(isActive, bluetoothProfile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user