Merge "Audioservice:do not supress music volume adjustment"

This commit is contained in:
Jean-Michel Trivi
2020-01-15 02:42:04 +00:00
committed by Gerrit Code Review

View File

@@ -6292,7 +6292,7 @@ public class AudioService extends IAudioService.Stub
return 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();
if ((flags & AudioManager.FLAG_SHOW_UI) != 0 && !mVisible) {
// ui will become visible