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

Skip to content
Commit 5f7c4834 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

BluetoothGatt: Fix duplicate GATT services being added

When BluetoothGatt#discoverServices() is called right before the binder
method onSearchComplete() is called, then the BluetoothGatt instance
gets two duplicate GATT services.

This CL fixes this issue by changing the timing of clearing cache into
onSearchComplete().

Bug: 391997799
Bug: 391773937
Test: atest GattClientTest
Flag: com.android.bluetooth.flags. fix_bluetooth_gatt_getting_duplicate_services
Change-Id: I55ad412e0dbbeef8eeb7884a9ff04850f0ca8664
parent 32de7b32
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