Skip to content

Commit f52cbb6

Browse files
Eric LaurentAndroid (Google) Code Review
authored andcommitted
Merge "AudioService: add fix for corrupted settings" into jb-mr1-dev
2 parents 92bc9b3 + d799db4 commit f52cbb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

media/java/android/media/AudioService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,12 @@ private void readPersistedSettings() {
670670
((1 << AudioSystem.STREAM_RING)|(1 << AudioSystem.STREAM_NOTIFICATION)|
671671
(1 << AudioSystem.STREAM_SYSTEM)|(1 << AudioSystem.STREAM_SYSTEM_ENFORCED)),
672672
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+
673679
if (mVoiceCapable) {
674680
mRingerModeAffectedStreams &= ~(1 << AudioSystem.STREAM_MUSIC);
675681
} else {

0 commit comments

Comments
 (0)