summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-06-01 11:52:23 -0400
committerJohn Spurlock <jspurlock@google.com>2014-06-01 11:52:23 -0400
commita11b4affcad3d255aa723a89b768ea222506f2e8 (patch)
tree44b0ebdd49385b80937ce006cf7435e08c258bb6 /packages
parentd1c86e2cb272f8b8be5b9b47aa4ec7084fe61c22 (diff)
downloadframeworks_base-a11b4affcad3d255aa723a89b768ea222506f2e8.zip
frameworks_base-a11b4affcad3d255aa723a89b768ea222506f2e8.tar.gz
frameworks_base-a11b4affcad3d255aa723a89b768ea222506f2e8.tar.bz2
VolumeZen: Prevent raising ringer volume in silent mode.
Instead of breaking out of silent mode when raising the volume using the keys, prevent the change and display a visual hint up in the user interface. Bug:15330217 Change-Id: I74aae44319aadcd6db9841c7799967607f5a1617
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
index 84cc1cd..898b46e 100644
--- a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
+++ b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
@@ -898,6 +898,11 @@ public class VolumePanel extends Handler {
mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE) {
sendMessageDelayed(obtainMessage(MSG_VIBRATE), VIBRATE_DELAY);
}
+
+ // Pulse the slider icon if an adjustment was suppressed due to silent mode.
+ if (sc != null && (flags & AudioManager.FLAG_SHOW_SILENT_HINT) != 0) {
+ pulseIcon(sc.icon);
+ }
}
private boolean isShowing() {