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

Commit 2616fbf6 authored by Andrei Stingaceanu's avatar Andrei Stingaceanu Committed by Android (Google) Code Review
Browse files

Merge "Keyboard Shortcuts: protect against NPE in WindowManagerService" into nyc-dev

parents 7f2bc453 f6711474
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10625,7 +10625,10 @@ public class WindowManagerService extends IWindowManager.Stub
    @Override
    public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId) {
        try {
            WindowState focusedWindow = getFocusedWindow();
            if (focusedWindow != null && focusedWindow.mClient != null) {
                getFocusedWindow().mClient.requestAppKeyboardShortcuts(receiver, deviceId);
            }
        } catch (RemoteException e) {
        }
    }