diff options
author | LuK1337 <priv.luk@gmail.com> | 2017-02-02 11:26:12 +0100 |
---|---|---|
committer | razorloves <razorloves@gmail.com> | 2017-02-11 23:15:42 -0600 |
commit | f1c31a5d4d4f13e3249cac825f8e22c8904aaadb (patch) | |
tree | b075f24722fd379e734be2fdf8549003afd718f1 /packages/SystemUI | |
parent | 4ba10939b7c05e4cf44d053ee8fa37a703c19e9b (diff) | |
download | frameworks_base-f1c31a5d4d4f13e3249cac825f8e22c8904aaadb.zip frameworks_base-f1c31a5d4d4f13e3249cac825f8e22c8904aaadb.tar.gz frameworks_base-f1c31a5d4d4f13e3249cac825f8e22c8904aaadb.tar.bz2 |
Use STREAM_RING on non-voice capable devices
* That's what Google does.
Change-Id: Iac88d161eb1dccbbb5c538d5e04d8d1fc43edef2
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index 9fda531..555c2d1 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -192,8 +192,13 @@ public class VolumeDialog { } }); - addRow(AudioManager.STREAM_RING, - R.drawable.ic_volume_ringer, R.drawable.ic_volume_ringer_mute, true); + if (Util.isVoiceCapable(mContext)) { + addRow(AudioManager.STREAM_RING, + R.drawable.ic_volume_ringer, R.drawable.ic_volume_ringer_mute, true); + } else { + addRow(AudioManager.STREAM_RING, R.drawable.ic_volume_notification, + R.drawable.ic_volume_notification_mute, true); + } addRow(AudioManager.STREAM_MUSIC, R.drawable.ic_volume_media, R.drawable.ic_volume_media_mute, true); addRow(AudioManager.STREAM_ALARM, @@ -635,7 +640,9 @@ public class VolumeDialog { } } - updateNotificationRowH(); + if (Util.isVoiceCapable(mContext)) { + updateNotificationRowH(); + } if (mActiveStream != state.activeStream) { mActiveStream = state.activeStream; |