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

Commit 7a18cb56 authored by RoboErik's avatar RoboErik
Browse files

Don't play a sound when adjusting volume while telephony is active

bug:17106215
Change-Id: I54f156d91440ce777e5a4d473cdd47927479d084
parent d379361e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
     * @param direction The direction to adjust volume in.
     */
    public void adjustVolume(int direction, int flags, String packageName, int uid) {
        if (isPlaybackActive(false)) {
        if (isPlaybackActive(false) || hasFlag(MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY)) {
            flags &= ~AudioManager.FLAG_PLAY_SOUND;
        }
        if (direction > 1) {