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

Skip to content
Commit 4a64f46a authored by Evan Chen's avatar Evan Chen
Browse files

Fix stop Ble scan logic

Can not simplly stop ble scan if one of the device is not connected yet.
We also need to check if any devices has been already reported ble
presence since there's a chance CDM need to report `ble disappeared`

After device is bt disconnected,  wait for 10 seconds, if a device
pending to report BLE device lost and also it was BLE presence before,
it is likely the BLE is lost and trigger the onDeviceEvent callback with
EVENT_BLE_DISAPPEARED event.

Bug: 326652934
Test: cts
Change-Id: I5c75647284cc877f7d53e29d899788842c696398
parent 77c6fd2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment