Display vibrate icon in volume menu

When a tablet is in vibrate mode, the notification
volume icon in the volume menu should be vibrate
and not silent.

Bug 7235006

Change-Id: I460a579a7796f8fb2cac8ff581a98f23e57d1bb0
This commit is contained in:
Eric Laurent
2013-03-25 18:43:39 -07:00
parent a042cbf653
commit 2c2bf97dd4

View File

@@ -115,7 +115,8 @@ public class RingerVolumePreference extends VolumePreference {
boolean muted = mAudioManager.isStreamMute(streamType); boolean muted = mAudioManager.isStreamMute(streamType);
if (mCheckBoxes[i] != null) { if (mCheckBoxes[i] != null) {
if ((streamType == AudioManager.STREAM_RING) && if (((streamType == AudioManager.STREAM_RING) ||
(streamType == AudioManager.STREAM_NOTIFICATION)) &&
(mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE)) { (mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE)) {
mCheckBoxes[i].setImageResource( mCheckBoxes[i].setImageResource(
com.android.internal.R.drawable.ic_audio_ring_notif_vibrate); com.android.internal.R.drawable.ic_audio_ring_notif_vibrate);