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 8cb009e451)
This commit is contained in:
committed by
Adrian Roos
parent
e00ffb51b8
commit
f37adce25d
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user