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
Loading
Please register or sign in to comment