From c86f573fb8ef20097f92357c7763358f3a56ea20 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Fri, 18 Jul 2014 11:45:05 -0400 Subject: [PATCH] Volume: Dismiss shade when launching settings from rocker. The volume dialog can appear over the expanded QS panel. Dismiss the shade when launching zen settings so that it is not obscured. Bug:16397104 Change-Id: Icc9e7107572305d366a9648f5082096ff92a8b71 --- .../SystemUI/src/com/android/systemui/volume/VolumeUI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java index e38c2ac8de514..6d6fd60ec1893 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java @@ -132,6 +132,9 @@ public class VolumeUI extends SystemUI { final Intent intent = ZenModePanel.ZEN_SETTINGS; intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); mContext.startActivityAsUser(intent, new UserHandle(UserHandle.USER_CURRENT)); + + // dismiss shade if showing + mContext.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); } }); mDialogPanel.postDismiss(mDismissDelay);