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

Commit 6e7ab5e7 authored by Roman Birg's avatar Roman Birg
Browse files

Telecom: don't set incall state when call was disconnected



This leads to unnecessary audio focus requests when in priority or
silent mode when 'mRinging' never gets set to true

Change-Id: Ieb6f645ee9da09622c6bc9158ef8ba3166ac89cf
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent f747e946
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -388,7 +388,8 @@ final class CallAudioManager extends CallsManagerListenerBase
            Call foregroundCall = getForegroundCall();
            Call waitingForAccountSelectionCall =
                    CallsManager.getInstance().getFirstCallWithState(CallState.PRE_DIAL_WAIT);
            if (foregroundCall != null && waitingForAccountSelectionCall == null) {
            if (foregroundCall != null && waitingForAccountSelectionCall == null
                    && foregroundCall.getState() != CallState.DISCONNECTED) {
                // In the case where there is a call that is waiting for account selection,
                // this will fall back to abandonAudioFocus() below, which temporarily exits
                // the in-call audio mode. This is to allow TalkBack to speak the "Call with"