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

Commit 5fbe88c4 authored by Hall Liu's avatar Hall Liu
Browse files

Remove an old AudioManager hack

Remove the round-trip back to normal mode when switching from in-call to
ringtone mode. It is apparently no longer necessary and is causing
problems with Bluetooth.

Change-Id: Iabe2e03c791b47cf64530678e6be4a1cec8007bc
Fixes: 62476271
Test: manual
parent 27437d92
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -208,12 +208,6 @@ public class CallAudioModeStateMachine extends StateMachine {
            if (mCallAudioManager.startRinging()) {
                mAudioManager.requestAudioFocusForCall(AudioManager.STREAM_RING,
                        AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);
                if (mMostRecentMode == AudioManager.MODE_IN_CALL) {
                    // Preserving behavior from the old CallAudioManager.
                    Log.i(LOG_TAG, "Transition from IN_CALL -> RINGTONE."
                            + "  Resetting to NORMAL first.");
                    mAudioManager.setMode(AudioManager.MODE_NORMAL);
                }
                mAudioManager.setMode(AudioManager.MODE_RINGTONE);
                mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.RINGING_FOCUS);
            } else {