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

Skip to content
Commit 979f2e79 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Re-register callbacks when service is connected

When a callback is registered to
BluetoothHapClient, BluetoothLeAudio and BluetoothLeBroadcast,
and their corresponding service is not available,
they register callbacks when the service is available.

Before this change, they did when BT is up, which could be
before the service is available and it failed.

This change fixes the timing by listening to the service connection.
It also removes unnecessary broadcast receivers.

Tag: #feature
Bug: 267461828
Test: atest BluetoothInstrumentationTests
Change-Id: I12f49241b49fc2f793e7c2a25c66629aacd4c53f
parent 5a00b850
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