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

Commit 6bd096c8 authored by John Spurlock's avatar John Spurlock
Browse files

Volume: allow dialog to play sound over keyguard.

Now that we are allowing the volume dialog above the keyguard,
the old suppression rule does not apply.

Bug:16186697
Change-Id: I071f1a2856850218e267d1fbaf547db44b644382
parent c09a04da
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -850,11 +850,10 @@ public class AudioService extends IAudioService.Stub {
            streamType = getActiveStreamType(suggestedStreamType);
        }

        // Play sounds on STREAM_RING only and if lock screen is not on.
        // Play sounds on STREAM_RING and STREAM_REMOTE_MUSIC only.
        if ((streamType != STREAM_REMOTE_MUSIC) &&
                (flags & AudioManager.FLAG_PLAY_SOUND) != 0 &&
                ((mStreamVolumeAlias[streamType] != AudioSystem.STREAM_RING)
                 || (mKeyguardManager != null && mKeyguardManager.isKeyguardLocked()))) {
                (mStreamVolumeAlias[streamType] != AudioSystem.STREAM_RING)) {
            flags &= ~AudioManager.FLAG_PLAY_SOUND;
        }