Merge "Only play sound effects if stream is not muted." am: f18982cc19

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/36572

Change-Id: I5dbbf013f4b053acdc99c73a7777d3bdd85fd04b
This commit is contained in:
Treehugger Robot
2020-11-03 01:37:10 +00:00
committed by Automerger Merge Worker

View File

@@ -3987,7 +3987,7 @@ public class AudioService extends IAudioService.Stub
/** @see AudioManager#playSoundEffect(int, float) */
public void playSoundEffectVolume(int effectType, float volume) {
// do not try to play the sound effect if the system stream is muted
if (isStreamMutedByRingerOrZenMode(STREAM_SYSTEM)) {
if (isStreamMute(STREAM_SYSTEM)) {
return;
}