We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92bc9b3 + d799db4 commit f52cbb6Copy full SHA for f52cbb6
media/java/android/media/AudioService.java
@@ -670,6 +670,12 @@ private void readPersistedSettings() {
670
((1 << AudioSystem.STREAM_RING)|(1 << AudioSystem.STREAM_NOTIFICATION)|
671
(1 << AudioSystem.STREAM_SYSTEM)|(1 << AudioSystem.STREAM_SYSTEM_ENFORCED)),
672
UserHandle.USER_CURRENT);
673
+
674
+ // ringtone, notification and system streams are always affected by ringer mode
675
+ mRingerModeAffectedStreams |= (1 << AudioSystem.STREAM_RING)|
676
+ (1 << AudioSystem.STREAM_NOTIFICATION)|
677
+ (1 << AudioSystem.STREAM_SYSTEM);
678
679
if (mVoiceCapable) {
680
mRingerModeAffectedStreams &= ~(1 << AudioSystem.STREAM_MUSIC);
681
} else {
0 commit comments