am ce66d35f
: Merge "Volume: Don\'t allow ringer volume of 0 exiting ringer mode." into lmp-mr1-dev
* commit 'ce66d35fc37ce7b0630281cbc364ac8b05cf7b85': Volume: Don't allow ringer volume of 0 exiting ringer mode.
This commit is contained in:
@ -1827,8 +1827,8 @@ public class AudioService extends IAudioService.Stub {
|
|||||||
if (!isStreamAffectedByRingerMode(streamType) ||
|
if (!isStreamAffectedByRingerMode(streamType) ||
|
||||||
ringerMode == AudioManager.RINGER_MODE_NORMAL) {
|
ringerMode == AudioManager.RINGER_MODE_NORMAL) {
|
||||||
// ring and notifications volume should never be 0 when not silenced
|
// ring and notifications volume should never be 0 when not silenced
|
||||||
// on voice capable devices
|
// on voice capable devices or devices that support vibration
|
||||||
if (isPlatformVoice() &&
|
if ((isPlatformVoice() || mHasVibrator) &&
|
||||||
mStreamVolumeAlias[streamType] == AudioSystem.STREAM_RING) {
|
mStreamVolumeAlias[streamType] == AudioSystem.STREAM_RING) {
|
||||||
synchronized (VolumeStreamState.class) {
|
synchronized (VolumeStreamState.class) {
|
||||||
Set set = mStreamStates[streamType].mIndex.entrySet();
|
Set set = mStreamStates[streamType].mIndex.entrySet();
|
||||||
|
Reference in New Issue
Block a user