Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cb009e4 authored by Akira Oshimi's avatar Akira Oshimi Committed by Hidenari Koshimae
Browse files

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
parent d21b6420
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();
            }
        }
    }