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:
@@ -115,7 +115,8 @@ public class RingerVolumePreference extends VolumePreference {
|
||||
boolean muted = mAudioManager.isStreamMute(streamType);
|
||||
|
||||
if (mCheckBoxes[i] != null) {
|
||||
if ((streamType == AudioManager.STREAM_RING) &&
|
||||
if (((streamType == AudioManager.STREAM_RING) ||
|
||||
(streamType == AudioManager.STREAM_NOTIFICATION)) &&
|
||||
(mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE)) {
|
||||
mCheckBoxes[i].setImageResource(
|
||||
com.android.internal.R.drawable.ic_audio_ring_notif_vibrate);
|
||||
|
Reference in New Issue
Block a user