Follow-up to "Close notification panel when user button is tapped"

The original CL just collapsed the panel. Instead, we're using the
dedicated startActivityDismissingKeyguard to make sure the Keyguard
gets properly dismissed first.

Follow-Up-To: I66ebcb66c898dfebe1d09b798f750f696c360da8
Bug: 27790403
Change-Id: I41c02221de951df885ecfb4f2869820b38410f18
This commit is contained in:
Adrian Roos
2016-03-23 11:23:51 -07:00
parent 9b95f615c4
commit bc3e2e11cc

View File

@@ -130,9 +130,8 @@ public class MultiUserSwitch extends FrameLayout implements View.OnClickListener
Intent intent = ContactsContract.QuickContact.composeQuickContactsIntent(
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();
mQsPanel.getHost().startActivityDismissingKeyguard(intent);
}
}
}