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

Commit c4e71f87 authored by Hall Liu's avatar Hall Liu
Browse files

Retry connectAudio if it returns false.

Sometimes, when BluetoothManager#connectBluetoothAudio is called
immediately after a bluetooth device connects, the HeadsetStateMachine
in the bluetooth stack is not yet ready to accept commands, and
therefore BluetoothHeadset#connectAudio returns false. This change adds
a retry with 500ms backoff.

Part of the fix for b/22507913

Bug: 22507913
Change-Id: I3084496c3af74687ea66c8558e20f1260420381c
parent cc21c7a4
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