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

Commit 20e4b033 authored by liuxiaoyu7's avatar liuxiaoyu7
Browse files

Audioservice:do not supress music volume adjustment



supress only for ring or notification

Change-Id: Iafcbfbcc98254ce78c8db21bfd75c12b6778f3f9
Signed-off-by: default avatarliuxiaoyu7 <liuxiaoyu7@xiaomi.com>
parent f04ee52d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6292,7 +6292,7 @@ public class AudioService extends IAudioService.Stub
                return false;
                return false;
            }
            }
            boolean suppress = false;
            boolean suppress = false;
            if (resolvedStream == DEFAULT_VOL_STREAM_NO_PLAYBACK && mController != null) {
            if (resolvedStream != AudioSystem.STREAM_MUSIC && mController != null) {
                final long now = SystemClock.uptimeMillis();
                final long now = SystemClock.uptimeMillis();
                if ((flags & AudioManager.FLAG_SHOW_UI) != 0 && !mVisible) {
                if ((flags & AudioManager.FLAG_SHOW_UI) != 0 && !mVisible) {
                    // ui will become visible
                    // ui will become visible