Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4a36a39d authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Avoid duplicate UUID intent on successful service discovery

fetchUuidsWithSdp() API schedules a ACTION_UUID intent to be sent after
6 seconds. This delayed intent is never cancelled, even if the service
discovey was concluded early and an ACTION_UUID intent was broadcasted.
This means that successful service discovery procedures always result in
two ACTION_UUID intents.
This change ensures that the delayed ACTION_UUID intent is cancelled
when service discovery concludes early.

Bug: 340322814
Bug: 361182196
Test: atest BumbleBluetoothTests:PairingTest#testServiceDiscovery_SingleIntent
Flag: com.android.bluetooth.flags.prevent_duplicate_uuid_intent
Change-Id: I8fb1213d45cc00f5f1d20f25a58e253c2ce53e2b
parent c1601b03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment