[LE audio Unicast]To clear the SetMemberPair when BT is turning off

Since the device's bond state got stuck at BOND_BONDING, it caused the
settings can't connect the member device. It can't recover by airplane
mode or restarting the BT.
Here resets the flag for recovery. To clear the SetMemberPair flag
when the Bluetooth is turning off.

Bug: 240380931
Test: build pass.
[pass] make RunSettingsLibRoboTests -j40 ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest

Change-Id: I6b6ed2537b35be99c5c61749d2ab3ee1d2c35510
This commit is contained in:
SongFerngWang
2022-08-13 03:10:11 +08:00
parent 2701e8074c
commit 6ff3500bc9

View File

@@ -297,6 +297,9 @@ public class CachedBluetoothDeviceManager {
mCachedDevices.remove(i);
}
}
// To clear the SetMemberPair flag when the Bluetooth is turning off.
mOngoingSetMemberPair = null;
}
}