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

Commit 153e7d10 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "WM: requestAppKeyboardShortcuts needs REGISTER_WINDOW_MANAGER_LISTENERS" into tm-qpr-dev

parents 0aadb77a 73106154
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -7275,6 +7275,9 @@ public class WindowManagerService extends IWindowManager.Stub


    @Override
    @Override
    public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId) {
    public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId) {
        mContext.enforceCallingOrSelfPermission(REGISTER_WINDOW_MANAGER_LISTENERS,
                "requestAppKeyboardShortcuts");

        try {
        try {
            WindowState focusedWindow = getFocusedWindow();
            WindowState focusedWindow = getFocusedWindow();
            if (focusedWindow != null && focusedWindow.mClient != null) {
            if (focusedWindow != null && focusedWindow.mClient != null) {