Merge "Fix volume indication in vibrate mode." into ics-mr0

This commit is contained in:
Eric Laurent
2011-10-31 16:21:16 -07:00
committed by Android (Google) Code Review

View File

@@ -1635,8 +1635,10 @@ public class AudioService extends IAudioService.Stub {
// "silent mode", but which one?
newRingerMode = vibeInSilent ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT;
}
if (uiIndex == 0 || (mPrevVolDirection == AudioManager.ADJUST_LOWER &&
mVoiceCapable && streamType == AudioSystem.STREAM_RING)) {
if (uiIndex == 0 ||
(!vibeInSilent &&
mPrevVolDirection == AudioManager.ADJUST_LOWER &&
mVoiceCapable && streamType == AudioSystem.STREAM_RING)) {
adjustVolumeIndex = false;
}
}