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