Avoid entering to the connected state of an inactive device in
BluetoothRouteManager
Currently telecom will re-evaluate the correct BT device state after we
request to clear the communication device of a BT device. However,
during the re-evaluate, device state returned from BT stack may not
update in time. Treat the requested device as an already inactive device
to avoid mistakenly enter to the connected state of the inactive device.
Bug: b/300236761
Test: atest BluetoothRouteManagerTest
Change-Id: Ib13b2d9f7146b4254e32ee5f055fee23b0171754
2 files changed