diff options
author | alk3pInjection <webmaster@raspii.tech> | 2024-09-27 15:12:48 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-09-27 15:12:48 +0800 |
commit | c2ebfed2f6d10af2767ea0b5d792984753c633e7 (patch) | |
tree | b1c3057c9826eaee77bc7a3116384427ca81d4fa | |
parent | cb02947b20ccad361f561dc2296d01d057909d06 (diff) | |
parent | a9de622194564064eb474016cf8f3aee1b66962e (diff) |
Merge tag 'LA.QSSI.14.0.r1-17300-qssi.0' into uminekoumineko
"LA.QSSI.14.0.r1-17300-qssi.0"
Change-Id: I3b50aba199a9e21d3f1df4ae2225c36ae0c4baa3
-rw-r--r-- | src/com/android/bluetooth/hfp/HeadsetStateMachine.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java index 83911f0c0..36a8e4971 100644 --- a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +++ b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java @@ -2624,6 +2624,13 @@ public class HeadsetStateMachine extends StateMachine { private void processIntentA2dpPlayStateChanged(int a2dpState) { Log.d(TAG, "Enter processIntentA2dpPlayStateChanged(): a2dp state "+ a2dpState); + + int cura2dpstate = mHeadsetService.getHfpA2DPSyncInterface().isA2dpPlaying(); + if (cura2dpstate == HeadsetA2dpSync.A2DP_PLAYING) { + Log.d(TAG, "a2dp is PALYING, ignore this A2DP_STATE_CHANGED event"); + return; + } + if (mHeadsetService.isVRStarted()) { Log.d(TAG, "VR is in started state"); if (mDevice.equals(mHeadsetService.getActiveDevice())) { |