OSDN Git Service

Close notification panel when user button is tapped
authorAkira Oshimi <akira.x.oshimi@sonymobile.com>
Wed, 25 Feb 2015 04:57:28 +0000 (13:57 +0900)
committerAdrian Roos <roosa@google.com>
Tue, 22 Mar 2016 18:02:01 +0000 (18:02 +0000)
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)

packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitch.java

index 03dd25e..8225dab 100644 (file)
@@ -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();
+            }
         }
     }