diff options
author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2022-01-26 16:32:36 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-01-26 16:32:36 -0800 |
commit | 18524d63ee0f724f636d4af0f6c223e3a1750fe4 (patch) | |
tree | 6695d99592bf89322fa2fae6ea9c81cc94175790 | |
parent | 44d456899c238ac61ebcc26cd4c8061d6a17e106 (diff) | |
parent | f9b635bd8bebc15af3819ea204d3694669065933 (diff) |
Merge "HFP: Ensure call state is set in system interface before posted to HeadsetStateMachine" into bt-sys.lnx.12.0
-rw-r--r-- | src/com/android/bluetooth/hfp/HeadsetService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetService.java b/src/com/android/bluetooth/hfp/HeadsetService.java index 528c6895a..177a0c955 100644 --- a/src/com/android/bluetooth/hfp/HeadsetService.java +++ b/src/com/android/bluetooth/hfp/HeadsetService.java @@ -2515,13 +2515,13 @@ public class HeadsetService extends ProfileService { if(availableDevices.size() > 0) { Log.i(TAG, "Update the phoneStateChanged status to connecting and " + "connected devices"); - doForEachConnectedConnectingStateMachine( - stateMachine -> stateMachine.sendMessage(HeadsetStateMachine.CALL_STATE_CHANGED, - new HeadsetCallState(numActive, numHeld, callState, number, type, name))); mStateMachinesThread.getThreadHandler().post(() -> { mSystemInterface.getHeadsetPhoneState().setNumActiveCall(numActive); mSystemInterface.getHeadsetPhoneState().setNumHeldCall(numHeld); mSystemInterface.getHeadsetPhoneState().setCallState(callState); + doForEachConnectedConnectingStateMachine( + stateMachine -> stateMachine.sendMessage(HeadsetStateMachine.CALL_STATE_CHANGED, + new HeadsetCallState(numActive, numHeld, callState, number, type, name))); if (!(mSystemInterface.isInCall() || mSystemInterface.isRinging())) { Log.i(TAG, "no call, sending resume A2DP message to state machines"); for (BluetoothDevice device : availableDevices) { |