Do not update the previously connected devices for the sub device
As bluetooth turn on, and device reboot, UI will show the sub device entry for hearing aid device or csip device. Check if the device is a sub device, do not update the cachedDevice information. Bug: 150670922 Bug: 178981521 Test: bonded with a coordinated set. Check the UI only have one entry as Bluetooth turn on and device reboot. Change-Id: I03dfdc25b57e614194fb8de2c9265edd50760d30
This commit is contained in:
@@ -65,7 +65,7 @@ public class SavedBluetoothDeviceUpdater extends BluetoothDeviceUpdater
|
||||
removePreferenceIfNecessary(bluetoothDevices, cachedManager);
|
||||
for (BluetoothDevice device : bluetoothDevices) {
|
||||
final CachedBluetoothDevice cachedDevice = cachedManager.findDevice(device);
|
||||
if (cachedDevice != null) {
|
||||
if (cachedDevice != null && !cachedManager.isSubDevice(device)) {
|
||||
update(cachedDevice);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user