diff options
author | penghua <quic_penghua@quicinc.com> | 2022-03-25 15:27:04 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-03-30 03:18:42 -0700 |
commit | 2da454803208cb9d3123c539edfa504ed320aa48 (patch) | |
tree | ca55ad40613666fd0f3d8f9d9b2fc611652e0c1c | |
parent | b60c8d7d051455b744decbcb7d227eed57809bdc (diff) |
Resume A2DP by posting RESUME_A2DP message
Analysis:
Fail to start A2DP because DUT set the a2dpsuspend flag
to false before sending the call end indicator to the
remote device due to the user's immediate voice release
action in voip call.
Fix:
This change doesn't call API to resume A2DP directly during
processing of A2DP change intent.Instead, it resumes A2DP
by posting RESUME_A2DP message.
CRs-Fixed: 3156626
Change-Id: I7853061da5b689da23ee4e3fe0febc6a2c2657dc
-rw-r--r-- | src/com/android/bluetooth/hfp/HeadsetStateMachine.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java index c3fc03c12..0b7feb53a 100644 --- a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +++ b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java @@ -2519,7 +2519,8 @@ public class HeadsetStateMachine extends StateMachine { it.remove(); } } - mHeadsetService.getHfpA2DPSyncInterface().releaseA2DP(mDevice); + Log.d(TAG, "Resume A2DP by sending RESUME_A2DP message"); + sendMessage(RESUME_A2DP); } Log.d(TAG, "Exit processIntentA2dpPlayStateChanged()"); } |