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

This commit is contained in:
Treehugger Robot
2020-11-03 01:16:08 +00:00
committed by Gerrit Code Review

View File

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