From f37adce25dce3df4797a734853a7873cc2a87765 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. Bug: 27790403 Change-Id: I66ebcb66c898dfebe1d09b798f750f696c360da8 (cherry picked from commit 8cb009e45115dbd03c66de6d56ef1510777a4ead) --- .../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 03dd25e3c5b0e..8225dab4a598b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java @@ -131,6 +131,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(); + } } }