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

Commit d13815a9 authored by Satish Kodishala's avatar Satish Kodishala Committed by Gerrit - the friendly Code Review server
Browse files

HFP AG: Don't cache call states for VOIP calls

If VOIP call is made during A2DP playback, wait for A2DP to
suspend. Don't cache the call states.

CRs-fixed: 927324
Change-Id: Ic42d1fad2de6be3fb3a2cabe145c50d86b6567ed
parent da174748
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3143,7 +3143,8 @@ final class HeadsetStateMachine extends StateMachine {
                mAudioManager.setParameters("A2dpSuspended=true");
                mA2dpSuspend = true;
            }
            if (mA2dpPlayState == BluetoothA2dp.STATE_PLAYING) {
            // Cache the call states for CS calls only
            if (mA2dpPlayState == BluetoothA2dp.STATE_PLAYING && !isVirtualCallInProgress()) {
                Log.d(TAG, "Cache the call state for future");
                mPendingCiev = true;
                mPendingCallStates.add(callState);