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

Commit bde9403f authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by android-build-merger
Browse files

Merge "[b/109850442]Fail to adjust volume when connect Ampplifier.]" am: 36ee8e02 am: 1506f83f

am: 61e22fed

Change-Id: Iab4d98dd5f3a0aa2b52d5a0283fdf1486b0388c3
parents 01e3a891 61e22fed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1614,7 +1614,9 @@ public class AudioService extends IAudioService.Stub

        // For notifications/ring, show the ui before making any adjustments
        // Don't suppress mute/unmute requests
        if (mVolumeController.suppressAdjustment(resolvedStream, flags, isMute)) {
        // Don't suppress adjustments for single volume device
        if (mVolumeController.suppressAdjustment(resolvedStream, flags, isMute)
                && !mIsSingleVolume) {
            direction = 0;
            flags &= ~AudioManager.FLAG_PLAY_SOUND;
            flags &= ~AudioManager.FLAG_VIBRATE;