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
This commit is contained in:
Akira Oshimi
2015-02-25 13:57:28 +09:00
committed by Hidenari Koshimae
parent d21b6420d2
commit 8cb009e451

View File

@@ -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();
}
}
}