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

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

Clear mPendingAudioProcessingCall

Clear mPendingAudioProcessingCall in CallsManager when the call gets set
to active for the first time so that it doesn't get reused when the call
potentially comes off hold later on.

Fixes: 159743938
Test: atest BackgroundCallAudioTest
Change-Id: Ibbf06a46620fd31e83c1a29044cc11b6997faa18
parent 3fc1c56c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2959,6 +2959,9 @@ public class CallsManager extends Call.ListenerBase
                    call.setState(CallState.AUDIO_PROCESSING, "active set explicitly and adding");
                    addCall(call);
                }
                // Clear mPendingAudioProcessingCall so that future attempts to mark the call as
                // active (e.g. coming off of hold) don't put the call into audio processing instead
                mPendingAudioProcessingCall = null;
                return;
            }
            setCallState(call, CallState.ACTIVE, "active set explicitly");