Remove simulated device from "present" list when disassociated.

Bug: 262910767
Test: atest CtsCompanionDeviceManagerCoreTestCases --iterations 10
Change-Id: Ia9a5de47ce0cc1293c1b99d7247bceccf36d5808
This commit is contained in:
Raphael Kim
2023-01-03 09:34:38 -08:00
parent 263814a96d
commit af253b5357

View File

@@ -281,6 +281,7 @@ public class CompanionDevicePresenceMonitor implements AssociationStore.OnChange
mConnectedBtDevices.remove(id);
mNearbyBleDevices.remove(id);
mReportedSelfManagedDevices.remove(id);
mSimulated.remove(id);
// Do NOT call mCallback.onDeviceDisappeared()!
// CompanionDeviceManagerService will know that the association is removed, and will do