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

Commit 8f668414 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Fix issue 5126270: Holding volume down vibrates"

parents 453091b2 cc11b1b8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -521,6 +521,10 @@ public class AudioService extends IAudioService.Stub {
             (!mVoiceCapable && streamType != AudioSystem.STREAM_VOICE_CALL &&
               streamType != AudioSystem.STREAM_BLUETOOTH_SCO) ||
                (mVoiceCapable && streamType == AudioSystem.STREAM_RING)) {
            //  do not vibrate if already in silent mode
            if (mRingerMode != AudioManager.RINGER_MODE_NORMAL) {
                flags &= ~AudioManager.FLAG_VIBRATE;
            }
            // Check if the ringer mode changes with this volume adjustment. If
            // it does, it will handle adjusting the volume, so we won't below
            adjustVolume = checkForRingerModeChange(oldIndex, direction);