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

Commit db29f7d5 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Remove an old AudioManager hack am: 5fbe88c4

am: dd249770

Change-Id: Ia867318895954f6ceb390a33ce8ada93010f7d5d
parents 783ba0a0 dd249770
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 {