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

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

Remove an old AudioManager hack

am: 5fbe88c4

Change-Id: I91542154698de12571f96440f8f1f90c94fc012d
parents f16bec4c 5fbe88c4
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 {