Merge "Only play sound effects if stream is not muted."
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user