From 8cb009e45115dbd03c66de6d56ef1510777a4ead Mon Sep 17 00:00:00 2001 From: Akira Oshimi Date: Wed, 25 Feb 2015 13:57:28 +0900 Subject: [PATCH] Close notification panel when user button is tapped When multi-user is disabled and user button on the notification panel is tapped, the contact app is displayed behind the notification panel. The notification panel should be closed when the contact app is launched. Change-Id: I66ebcb66c898dfebe1d09b798f750f696c360da8 --- .../com/android/systemui/statusbar/phone/MultiUserSwitch.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java index e70d146119f46..04b0100c6176e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java @@ -124,6 +124,9 @@ public class MultiUserSwitch extends FrameLayout implements View.OnClickListener getContext(), v, ContactsContract.Profile.CONTENT_URI, ContactsContract.QuickContact.MODE_LARGE, null); getContext().startActivityAsUser(intent, new UserHandle(UserHandle.USER_CURRENT)); + if (mQsPanel != null) { + mQsPanel.getHost().collapsePanels(); + } } }