diff options
| author | 2014-09-08 12:11:51 +0200 | |
|---|---|---|
| committer | 2014-09-08 15:54:41 +0200 | |
| commit | 62ea340af4272fa23f5570a02b58a15e19de7de9 (patch) | |
| tree | c4fd565dccf3ab91039cf8e9bbbc4ce965d5f264 | |
| parent | cb2b6737ae6db2384cfad6cae68211d669946c52 (diff) | |
Announcing the stream type when the volume panel comes up
Bug: 17299985
Change-Id: I5f71f1ca63223d0a039a5b92dc9521b6dc1e2da5
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java | 6 |
1 files changed, 6 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 ffc10a9b6594..6949ffbbd61a 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java @@ -56,6 +56,7 @@ import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; import android.view.WindowManager.LayoutParams; +import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityManager; import android.widget.ImageView; import android.widget.SeekBar; @@ -1078,6 +1079,7 @@ public class VolumePanel extends Handler { if (mCallback != null) { mCallback.onVisible(true); } + announceDialogShown(); } // Do a little vibrate if applicable (only when going into vibrate mode) @@ -1094,6 +1096,10 @@ public class VolumePanel extends Handler { } } + private void announceDialogShown() { + mView.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); + } + private boolean isShowing() { return mDialog.isShowing(); } |